diff --git a/Web/src/stores/keepAliveNames.ts b/Web/src/stores/keepAliveNames.ts index 981198f2..493d019f 100644 --- a/Web/src/stores/keepAliveNames.ts +++ b/Web/src/stores/keepAliveNames.ts @@ -22,7 +22,9 @@ export const useKeepALiveNames = defineStore('keepALiveNames', { }, async delCachedView(view: any) { const index = this.cachedViews.indexOf(view.name); - index > -1 && this.cachedViews.splice(index, 1); + setTimeout(() => { + index > -1 && this.cachedViews.splice(index, 1); + }, 20); }, async delOthersCachedViews(view: any) { if (view.meta.isKeepAlive) this.cachedViews = [view.name];