fix: 关闭其它页签需要使用fullPath来判断

pull/19/MERGE
xingyu 2023-06-10 12:14:55 +08:00
parent cae30317a4
commit 36ba923c20
1 changed files with 2 additions and 1 deletions

View File

@ -303,7 +303,7 @@ export const useMultipleTabStore = defineStore('app-multiple-tab', {
for (const path of closePathList) {
if (path !== route.fullPath) {
const closeItem = this.tabList.find((item) => item.path === path)
const closeItem = this.tabList.find((item) => item.fullPath === path)
if (!closeItem) {
continue
}
@ -315,6 +315,7 @@ export const useMultipleTabStore = defineStore('app-multiple-tab', {
}
this.bulkCloseTabs(pathList)
this.updateCacheTab()
Persistent.setLocal(MULTIPLE_TABS_KEY, this.tabList, true)
handleGotoPage(router)
},