Skip to content

Commit cda573f

Browse files
committed
更新[BoxJs]: 修复导入会话报错
1 parent e137f7e commit cda573f

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

box/chavy.boxjs.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,7 +1769,8 @@ <h2 :class="version === ver.version ? 'primary--text' : undefined">v{{ver.versio
17691769
const impval = this.ui.impAppDatasDialog.impval
17701770
const impapp = JSON.parse(impval)
17711771
const datas = impapp.datas || []
1772-
impapp.settings.forEach((setting) => {
1772+
const settings = impapp.settings || []
1773+
settings.forEach((setting) => {
17731774
const { id: key, val } = setting
17741775
datas.push({ key, val })
17751776
})
@@ -1779,7 +1780,10 @@ <h2 :class="version === ver.version ? 'primary--text' : undefined">v{{ver.versio
17791780
delete resp.data.usercfgs
17801781
Object.assign(this.box, resp.data)
17811782
})
1782-
.finally(() => (this.ui.impAppDatasDialog = false))
1783+
.finally(() => {
1784+
this.ui.impAppDatasDialog.show = false
1785+
this.ui.impAppDatasDialog.impval = ''
1786+
})
17831787
},
17841788
// 添加应用订阅
17851789
addAppSub(url) {

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.23'
3+
$.version = '0.7.24'
44
$.versionType = 'beta'
55

66
/**

box/release/box.release.tf.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"releases": [
33
{
4-
"version": "0.7.23",
4+
"version": "0.7.24",
55
"tags": ["beta"],
66
"author": "@chavyleung",
77
"icon": "https://avatars3.githubusercontent.com/u/29748519",
88
"repo": "https://github.com/chavyleung",
99
"notes": [
1010
{
1111
"name": "修复",
12-
"descs": ["解决首屏闪屏问题", "解决图标白边问题"]
12+
"descs": ["解决首屏闪屏问题", "解决图标白边问题", "导入会话报错"]
1313
},
1414
{
1515
"name": "感谢",

0 commit comments

Comments
 (0)