Skip to content

Commit 285cce4

Browse files
author
幾米
committed
修复删除备份后,后退到首页的问题
复现方式:刚打开首页,点“我的”,点一个备份进去删除。
1 parent d8ef66a commit 285cce4

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

‎box/chavy.boxjs.html‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,14 +1897,11 @@ <h2 :class="version === ver.version ? 'primary--text' : undefined">v{{ver.versio
18971897
},
18981898
// 切换备份视图
18991899
switchBakView(bakId) {
1900-
const bak = this.baks.find((bak) => bak.id === bakId)
19011900
const path = `/#/bak/${bakId}`
1902-
if (!bak.bak) {
1903-
this.loadGlobalBak().then((resp) => (this.path = path))
1904-
} else {
1901+
this.loadGlobalBak().then((resp) => {
19051902
this.path = path
1906-
this.handleHistory(this.path)
1907-
}
1903+
this.handleHistory(path)
1904+
})
19081905
},
19091906
// 重载主题
19101907
loadTheme() {

0 commit comments

Comments
 (0)