From 22f3f755577931c07d55cc1156a6a2fc378d03ec Mon Sep 17 00:00:00 2001 From: LionCity <18026623439@163.com> Date: Mon, 3 Aug 2020 19:14:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=89=E4=B8=AD=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/role/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index 7a83b80..5d1569b 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -110,8 +110,6 @@ :data="menus" :default-checked-keys="menuIds" :props="defaultProps" - check-strictly - accordion show-checkbox node-key="id" /> @@ -238,7 +236,9 @@ export default { this.menuIds = [] // 菜单数据需要特殊处理 val.menus.forEach(function(data, index) { - _this.menuIds.push(data.id) + if(data.pid!=0){ + _this.menuIds.push(data.id) + } }) } },