From d6dc72553a9a9ec76ccdbc7e42ad60e37d028449 Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Sun, 8 Oct 2023 19:01:18 +0800 Subject: [PATCH] chore: compose workflow api --- src/store/modules/multipleTab.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;