From eef022600d12af0ac23a8379fb3a8a0f9ed9ac2c Mon Sep 17 00:00:00 2001 From: xiongchengqiang Date: Fri, 22 May 2020 17:15:44 +0800 Subject: [PATCH] =?UTF-8?q?style:=E4=BC=98=E5=8C=96=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=9A=84=E5=B7=B2=E6=8E=88=E6=9D=83=E8=8F=9C?= =?UTF-8?q?=E5=8D=95;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/sys/role/role-add-or-update.vue | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/views/modules/sys/role/role-add-or-update.vue b/src/views/modules/sys/role/role-add-or-update.vue index c8e1ae6..1dd5d81 100644 --- a/src/views/modules/sys/role/role-add-or-update.vue +++ b/src/views/modules/sys/role/role-add-or-update.vue @@ -124,15 +124,10 @@ export default { if (idx !== -1) { res.role.menuIdList.splice(idx, res.role.menuIdList.length - idx) } - this.dataDemo = res.role.menuIdList - setTimeout(() => { - this.$nextTick(() => { - this.$refs.menuListTree.setCheckedKeys(res.role.menuIdList) - if (this.disable) { - this.$refs.menuListTree.filter(this.dataDemo) - } - }) - }, 50) + if (this.disable) { + this.$refs.menuListTree.filter(res.role.menuIdList) + } + this.defaultCheckedKeys = res.role.menuIdList } }) },