From a71989e27cf5414979a4fa5ec7f9658b721af5e4 Mon Sep 17 00:00:00 2001 From: zhutianqi Date: Mon, 22 Nov 2021 09:43:24 +0800 Subject: [PATCH] commit --- src/components/roleTree/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) {