修复关闭当前页tab无法正常跳转的问题
This commit is contained in:
@@ -52,8 +52,8 @@ 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: this.fixed.id || "/"}
|
||||
this.handleTabClick(next)
|
||||
const next = pages?.[index + 1] || pages?.[index - 1] || {id: this.fixed.id || "/"}
|
||||
this.handleTabClick({name: next.id})
|
||||
}
|
||||
this.deletePage(id)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user