소스 검색

fix: 修复多tab带参数匹配不正确的bug (#1482)

Henry Rao 3 년 전
부모
커밋
aab6b4f393
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/hooks/web/useTabs.ts

+ 1 - 1
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) {