Commit aab6b4f393abaf0253f0ed1c52084fd2f03e86e3

Authored by Henry Rao
Committed by GitHub
1 parent 54ea44cd

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

Showing 1 changed file with 1 additions and 1 deletions
src/hooks/web/useTabs.ts
... ... @@ -34,7 +34,7 @@ export function useTabs(_router?: Router) {
34 34  
35 35 function getCurrentTab() {
36 36 const route = unref(currentRoute);
37   - return tabStore.getTabList.find((item) => item.path === route.path)!;
  37 + return tabStore.getTabList.find((item) => item.fullPath === route.fullPath)!;
38 38 }
39 39  
40 40 async function updateTabTitle(title: string, tab?: RouteLocationNormalized) {
... ...