fix(tabs): fix the problem that other functions are invalid when the tab is closed, close #376

This commit is contained in:
Vben
2021-04-19 23:40:59 +08:00
parent 4f0c6fbcc7
commit b92b8a3c6a
9 changed files with 28 additions and 16 deletions

View File

@@ -267,7 +267,7 @@ export const useMultipleTabStore = defineStore({
if (path !== route.fullPath) {
const closeItem = this.tabList.find((item) => item.path === path);
if (!closeItem) {
return;
continue;
}
const affix = closeItem?.meta?.affix ?? false;
if (!affix) {