treeData: [...]
name:'要禁用的名字'
// 设置节点禁用
loopMuduleTreeDisabled(arr, that) {
arr.forEach((item) => {
if (item.name === this.name) {
that.$set(item, 'disabled', true);
return;
}
this.loopMuduleTreeDisabled(item.children, that);
});
},