fix: 修复角色分配菜单父子关联不生效的问题

This commit is contained in:
lilinyuan
2024-03-31 00:12:35 +08:00
parent 2282f1c834
commit 7e0a065944

View File

@@ -11,7 +11,7 @@
:data="localData.menuData"
:filter-node-method="filterMenu"
:props="localData.menuTreeProps"
:check-strictly="localData.checkStrictly"
:check-strictly="!localData.checkStrictly"
show-checkbox
node-key="menuId"
@check-change="checkChange"
@@ -162,7 +162,9 @@ const checkChange = (data) => {
}
const checkBoxChange = (val) => {
console.log(val.includes('3'), 'cl');
localData.checkStrictly = val.includes('3')
console.log(localData.checkStrictly, 'ss');
let nodes = menuTree.value.store.nodesMap
if (val.includes('1')) {
for (const node in nodes) {