修复关闭当前页tab无法正常跳转的问题

This commit is contained in:
aixianling
2023-02-03 17:10:35 +08:00
parent b1d8a3c1ca
commit 996c5ab75a

View File

@@ -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)
},