Browse Source

修复选中问题

master
LionCity 4 years ago
parent
commit
22f3f75557
  1. 6
      src/views/system/role/index.vue

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

Loading…
Cancel
Save