perf: 重置路由时,清空缓存页面

This commit is contained in:
xiaoxian521
2022-08-24 16:08:05 +08:00
parent cef79dfca0
commit 3056527701
3 changed files with 4 additions and 2 deletions

View File

@@ -63,6 +63,9 @@ export const usePermissionStore = defineStore({
},
// 清空缓存页面
clearAllCachePage() {
this.wholeMenus = [];
this.menusTree = [];
this.buttonAuth = [];
this.cachePageList = [];
}
}