mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-12 05:33:48 +08:00
update
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user