diff --git a/src/store/modules/tabbar.ts b/src/store/modules/tabbar.ts index 66db9bef..07994ec6 100755 --- a/src/store/modules/tabbar.ts +++ b/src/store/modules/tabbar.ts @@ -19,7 +19,7 @@ export const useTabbarStore = defineStore( } }) const meta = route.matched.at(-1)?.meta - const tabId = route.fullPath + const tabId = route.path if (route.name !== 'reload') { // 记录查找到的标签页 const findTab = list.value.find((item) => { diff --git a/src/utils/composables/useTabbar.ts b/src/utils/composables/useTabbar.ts index 503e5332..99ea4963 100755 --- a/src/utils/composables/useTabbar.ts +++ b/src/utils/composables/useTabbar.ts @@ -7,7 +7,7 @@ export default function useTabbar() { const tabbarStore = useTabbarStore() function getId() { - return route.fullPath + return route.path } function closeById(tabId = getId()) {