From 36ba923c201a298d0bd2a74014f8502312172649 Mon Sep 17 00:00:00 2001 From: xingyu Date: Sat, 10 Jun 2023 12:14:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=B3=E9=97=AD=E5=85=B6=E5=AE=83?= =?UTF-8?q?=E9=A1=B5=E7=AD=BE=E9=9C=80=E8=A6=81=E4=BD=BF=E7=94=A8fullPath?= =?UTF-8?q?=E6=9D=A5=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/multipleTab.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/store/modules/multipleTab.ts b/src/store/modules/multipleTab.ts index 86267210..4afafa70 100644 --- a/src/store/modules/multipleTab.ts +++ b/src/store/modules/multipleTab.ts @@ -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) },