Skip to content

Commit 4f231ba

Browse files
author
幾米
committed
后退方法调整
history.back会触发url变化,不需要运行handleHistory
1 parent 067c4f8 commit 4f231ba

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

‎box/chavy.boxjs.html‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1919,15 +1919,7 @@ <h2 :class="version === ver.version ? 'primary--text' : undefined">v{{ver.versio
19191919
},
19201920
// 页面返回
19211921
back() {
1922-
if (this.view === 'bak' && !this.bfpath) {
1923-
this.path = '/#/my'
1924-
this.handleHistory(this.path)
1925-
} else if (this.view === 'app' && !this.bfpath) {
1926-
this.path = '/#/app'
1927-
this.handleHistory(this.path)
1928-
} else {
1929-
history.back()
1930-
}
1922+
history.back()
19311923
},
19321924
// 切换当前容器环境
19331925
switchEnv(env) {

0 commit comments

Comments
 (0)