From aab6b4f393abaf0253f0ed1c52084fd2f03e86e3 Mon Sep 17 00:00:00 2001 From: Henry Rao Date: Sat, 18 Dec 2021 22:27:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=A4=9Atab=E5=B8=A6?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E5=8C=B9=E9=85=8D=E4=B8=8D=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E7=9A=84bug=20(#1482)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/web/useTabs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/web/useTabs.ts b/src/hooks/web/useTabs.ts index 926d90b8..14dde2f8 100644 --- a/src/hooks/web/useTabs.ts +++ b/src/hooks/web/useTabs.ts @@ -34,7 +34,7 @@ export function useTabs(_router?: Router) { function getCurrentTab() { const route = unref(currentRoute); - return tabStore.getTabList.find((item) => item.path === route.path)!; + return tabStore.getTabList.find((item) => item.fullPath === route.fullPath)!; } async function updateTabTitle(title: string, tab?: RouteLocationNormalized) {