This commit is contained in:
zhuoda
2023-06-13 20:33:33 +08:00
parent c7501c7f36
commit 793115e2e7
5 changed files with 11 additions and 11 deletions

View File

@@ -240,7 +240,7 @@ export const useUserStore = defineStore({
},
// 清空缓存
clearKeepAliveIncludes(val) {
if (!val || !this.keepAliveIncludes?.includes(val)) {
if (!val || !this.keepAliveIncludes.includes(val)) {
this.keepAliveIncludes = [];
return;
}