Skip to content

Commit 0702232

Browse files
committed
更新[BoxJs]: 修复 Boolean 控件取消值错误问题
1 parent 4974cb0 commit 0702232

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎box/chavy.boxjs.html‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1433,8 +1433,9 @@ <h2>{{curbak.name}}</h2>
14331433
this.ui.overlay.show = true
14341434
const datas = []
14351435
this.curapp.settings.forEach((setting) => {
1436+
const isNilVal = _.isNil(setting.val)
14361437
const key = setting.id
1437-
const val = setting.val ? _.toString(setting.val) : ''
1438+
const val = !isNilVal ? _.toString(setting.val) : ''
14381439
datas.push({ key, val })
14391440
})
14401441
axios

‎box/chavy.boxjs.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const $ = new Env('BoxJs')
22

3-
$.version = '0.7.5'
3+
$.version = '0.7.6'
44
$.versionType = 'beta'
55

66
// 存储`用户偏好`

0 commit comments

Comments
 (0)