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) + } }) } },