调整一下
This commit is contained in:
@@ -51,7 +51,7 @@ export default {
|
||||
const {pages} = this.logs
|
||||
if (id == this.currentTab) {
|
||||
const index = pages.findIndex(e => e.id == id)
|
||||
const next = pages?.[index + 1] || pages?.[index - 1] || {name: '/'}
|
||||
const next = pages?.[index + 1] || pages?.[index - 1] || {name: this.fixed.id || "/"}
|
||||
this.handleTabClick(next)
|
||||
}
|
||||
this.deletePage(id)
|
||||
@@ -61,7 +61,7 @@ export default {
|
||||
},
|
||||
handleOpt(v) {
|
||||
this.$store.commit(v)
|
||||
v == "clearAllPages" && this.handleTabClick({name: '/'})
|
||||
v == "clearAllPages" && this.handleTabClick({name: this.fixed.id || "/"})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user