diff --git a/src/components/roleTree/index.vue b/src/components/roleTree/index.vue index c521386bf..1e4eefd67 100644 --- a/src/components/roleTree/index.vue +++ b/src/components/roleTree/index.vue @@ -135,7 +135,10 @@ this.isVisible2 = false }, saveUserInfo () { - if (this.nodeList.length > 0) { + if (this.nodeList[0].length === 0) { + this.isVisible2 = false + this.$emit('checkedRole', this.roleList) + } else if (this.nodeList.length > 0) { let ids = '' this.nodeList.forEach(item => { if (ids.length > 0) {