From 208df4e6487e5328cad5e7f808b2dfca9c4f8033 Mon Sep 17 00:00:00 2001 From: Hooray Hu <304327508@qq.com> Date: Thu, 8 Aug 2024 16:06:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B8=A6=E5=8F=82=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E6=97=A0=E6=B3=95=E8=AE=B0=E5=BD=95=E5=88=B0=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E6=A0=8F=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/tabbar.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/store/modules/tabbar.ts b/src/store/modules/tabbar.ts index 5c80986ab..98f07d65c 100755 --- a/src/store/modules/tabbar.ts +++ b/src/store/modules/tabbar.ts @@ -24,19 +24,13 @@ const useTabbarStore = defineStore( if (route.name !== 'reload') { // 记录查找到的标签页 const findTab = list.value.find((item) => { - if (item.routeName) { - return item.routeName === route.name - } - else { - return item.tabId === tabId - } + return item.tabId === tabId }) // 新增标签页 if (!findTab) { const listItem = { tabId, fullPath: route.fullPath, - routeName: route.name, title: typeof meta?.title === 'function' ? meta.title() : meta?.title, icon: meta?.icon ?? meta?.breadcrumbNeste?.findLast(item => item.icon)?.icon, name: names,