diff --git a/box/chavy.boxjs.js b/box/chavy.boxjs.js index b0f953fd6..7ed2011ee 100644 --- a/box/chavy.boxjs.js +++ b/box/chavy.boxjs.js @@ -3,7 +3,7 @@ const $ = new Env('BoxJs') // 为 eval 准备的上下文环境 const $eval_env = {} -$.version = '0.19.13' +$.version = '0.19.14' $.versionType = 'beta' // 发出的请求需要需要 Surge、QuanX 的 rewrite @@ -675,7 +675,7 @@ function getAppDatas(app) { } else if (setting.type === 'int') { setting.val = dataval * 1 || setting.val } else if (setting.type === 'checkboxes') { - if (!nulls.includes(dataval)) { + if (!nulls.includes(dataval) && typeof dataval === 'string') { setting.val = dataval ? dataval.split(',') : [] } else { setting.val = Array.isArray(setting.val) ? setting.val : setting.val.split(',') diff --git a/box/release/box.release.json b/box/release/box.release.json index 2059ded85..845789d7d 100644 --- a/box/release/box.release.json +++ b/box/release/box.release.json @@ -1,5 +1,17 @@ { "releases": [ + { + "version": "0.19.14", + "tags": ["beta"], + "author": "@GideonSenku", + "msg": "fix(boxjs): 白屏问题", + "notes": [ + { + "name": "修复", + "descs": ["部分场景下白屏"] + } + ] + }, { "version": "0.19.13", "tags": ["beta"], diff --git a/box/release/box.release.tf.json b/box/release/box.release.tf.json index 22f88ad03..172c65064 100644 --- a/box/release/box.release.tf.json +++ b/box/release/box.release.tf.json @@ -1,5 +1,17 @@ { "releases": [ + { + "version": "0.19.14", + "tags": ["beta"], + "author": "@GideonSenku", + "msg": "fix(boxjs): 白屏问题", + "notes": [ + { + "name": "修复", + "descs": ["部分场景下白屏"] + } + ] + }, { "version": "0.19.13", "tags": ["beta"], diff --git a/chavy.box.js b/chavy.box.js index b0f953fd6..7ed2011ee 100644 --- a/chavy.box.js +++ b/chavy.box.js @@ -3,7 +3,7 @@ const $ = new Env('BoxJs') // 为 eval 准备的上下文环境 const $eval_env = {} -$.version = '0.19.13' +$.version = '0.19.14' $.versionType = 'beta' // 发出的请求需要需要 Surge、QuanX 的 rewrite @@ -675,7 +675,7 @@ function getAppDatas(app) { } else if (setting.type === 'int') { setting.val = dataval * 1 || setting.val } else if (setting.type === 'checkboxes') { - if (!nulls.includes(dataval)) { + if (!nulls.includes(dataval) && typeof dataval === 'string') { setting.val = dataval ? dataval.split(',') : [] } else { setting.val = Array.isArray(setting.val) ? setting.val : setting.val.split(',')