😎代码格式化

This commit is contained in:
zuohuaijun 2024-08-28 17:55:51 +08:00
parent ba6359bb91
commit 4bf3070b16

View File

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