diff --git a/src/store/modules/multipleTab.ts b/src/store/modules/multipleTab.ts index 1650524..a89ed6b 100644 --- a/src/store/modules/multipleTab.ts +++ b/src/store/modules/multipleTab.ts @@ -70,7 +70,7 @@ export const useMultipleTabStore = defineStore({ // 忽略缓存 const needCache = item.meta?.keepAlive; if (!needCache) continue; - const name = item.name as string; + const name = item.meta?.compName || item.name as string; cacheMap.add(name); } this.cacheTabList = cacheMap;