From 1fee161786fee79a06fb3b308374db098abd461a Mon Sep 17 00:00:00 2001 From: Kyun Wong <56475308+7kyun@users.noreply.github.com> Date: Tue, 14 May 2024 10:52:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B7=AF=E7=94=B1=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E9=9D=9E=E8=8B=B1=E6=96=87=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B=20=E4=BC=9A=E7=94=9F?= =?UTF-8?q?=E6=88=90=E4=B8=80=E4=B8=AA=E6=96=B0=E7=9A=84tab=20=E8=80=8C?= =?UTF-8?q?=E9=9D=9E=E8=BF=94=E5=9B=9E=E5=8E=9F=E6=9C=89tab=20(#3832)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/multipleTab.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/multipleTab.ts b/src/store/modules/multipleTab.ts index c84ad964..2fd67361 100644 --- a/src/store/modules/multipleTab.ts +++ b/src/store/modules/multipleTab.ts @@ -134,7 +134,7 @@ export const useMultipleTabStore = defineStore({ // Existing pages, do not add tabs repeatedly const tabHasExits = this.tabList.some((tab, index) => { updateIndex = index; - return (tab.fullPath || tab.path) === (fullPath || path); + return decodeURIComponent(tab.fullPath || tab.path) === decodeURIComponent(fullPath || path); }); // If the tab already exists, perform the update operation