修复模板

This commit is contained in:
轻风2016 2024-08-28 20:24:09 +08:00
commit bf4d788af3

View File

@ -22,7 +22,9 @@ export const useKeepALiveNames = defineStore('keepALiveNames', {
},
async delCachedView(view: any) {
const index = this.cachedViews.indexOf(view.name);
setTimeout(() => {
index > -1 && this.cachedViews.splice(index, 1);
}, 20);
},
async delOthersCachedViews(view: any) {
if (view.meta.isKeepAlive) this.cachedViews = [view.name];