From 1fee161786fee79a06fb3b308374db098abd461a Mon Sep 17 00:00:00 2001
From: Kyun Wong <56475308+7kyun@users.noreply.github.com>
Date: 星期二, 14 五月 2024 10:52:44 +0800
Subject: [PATCH] fix: 路由参数存在非英文字符的情况下 会生成一个新的tab 而非返回原有tab (#3832)

---
 src/store/modules/multipleTab.ts |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/store/modules/multipleTab.ts b/src/store/modules/multipleTab.ts
index c84ad96..2fd6736 100644
--- a/src/store/modules/multipleTab.ts
+++ b/src/store/modules/multipleTab.ts
@@ -134,7 +134,7 @@
       // 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

--
Gitblit v1.8.0