Преглед на файлове

fix: 标签匹配全局路径

王晓东 преди 1 месец
родител
ревизия
4584353ef0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/store/modules/tabbar.ts

+ 1 - 1
src/store/modules/tabbar.ts

@@ -19,7 +19,7 @@ export const useTabbarStore = defineStore(
         }
       })
       const meta = route.matched.at(-1)?.meta
-      const tabId = route.path
+      const tabId = route.fullPath
       if (route.name !== 'reload') {
         // 记录查找到的标签页
         const findTab = list.value.find((item) => {