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

@@ -82,7 +82,7 @@ export const useRoleStore = defineStore({
return;
}
// 选中父级
let parentIndex = this.checkedData.findIndex((e) => parentModule?.menuId === e);
let parentIndex = this.checkedData.findIndex((e) => parentModule.menuId === e);
if (parentModule.menuId && parentIndex == -1) {
this.addCheckedData(parentModule.menuId);
}

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;
}