소스 검색

fix(keep-alive): tablist cache updating effect

修复 updateCacheTab 逻辑问题造成的KeepAlive配置可能失效的问题

close: #695
无木 3 년 전
부모
커밋
d62d0ca08c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/store/modules/multipleTab.ts

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

@@ -60,7 +60,7 @@ export const useMultipleTabStore = defineStore({
         // Ignore the cache
         const needCache = !item.meta?.ignoreKeepAlive;
         if (!needCache) {
-          return;
+          continue;
         }
         const name = item.name as string;
         cacheMap.add(name);