Skip to content

Commit

Permalink
fix(boxjs): 白屏问题
Browse files Browse the repository at this point in the history
  • Loading branch information
gideonsenku committed Sep 29, 2024
1 parent eecdec2 commit d27d9f5
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
4 changes: 2 additions & 2 deletions box/chavy.boxjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(',')
Expand Down
12 changes: 12 additions & 0 deletions box/release/box.release.json
Original file line number Diff line number Diff line change
@@ -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"],
Expand Down
12 changes: 12 additions & 0 deletions box/release/box.release.tf.json
Original file line number Diff line number Diff line change
@@ -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"],
Expand Down
4 changes: 2 additions & 2 deletions chavy.box.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(',')
Expand Down

0 comments on commit d27d9f5

Please sign in to comment.