fix(keep-alive): tablist cache updating effect

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

close: #695
This commit is contained in:
无木 2021-06-03 16:28:48 +08:00
parent 808328dc7e
commit d62d0ca08c

View File

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