fix: 菜单分配父子联动

This commit is contained in:
lilinyuan
2024-03-31 00:36:08 +08:00
parent ed0a5e1a7d
commit 64c735eb74

View File

@@ -50,7 +50,7 @@ const localData = reactive({
label: 'menuName',
children: 'children'
},
checkStrictly: false,
checkStrictly: true,
checkList: ['3'],
checkOptions: [
{
@@ -162,9 +162,7 @@ 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) {