This commit is contained in:
宋伟佳
2022-01-04 09:11:47 +08:00
parent 305ce2ea1b
commit 2b460ad24d
@@ -935,7 +935,7 @@ export default {
}, },
drawerCheck(data) { drawerCheck(data) {
var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes()); var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
if (getlist.length == 1) { if (getlist.length === 1) {
this.roleRow = getlist[0]; this.roleRow = getlist[0];
} else { } else {
this.$refs.tree.setCheckedKeys([data.id]); this.$refs.tree.setCheckedKeys([data.id]);