Merge pull request 'fix: 菜单分配父子联动' (#76) from role into master

Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/76
This commit is contained in:
wenhua
2024-03-30 16:36:29 +00:00

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) {