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