Commit e2bc51c7 by ZhengJie

[代码优化](v2.6):角色管理选择菜单Bug修复

parent c9a8b708
...@@ -240,7 +240,10 @@ export default { ...@@ -240,7 +240,10 @@ export default {
} }
} else { } else {
for (let i = 0; i < childIds.length; i++) { for (let i = 0; i < childIds.length; i++) {
this.menuIds.push(childIds[i]) const index = this.menuIds.indexOf(childIds[i])
if (index === -1) {
this.menuIds.push(childIds[i])
}
} }
} }
this.$refs.menu.setCheckedKeys(this.menuIds) this.$refs.menu.setCheckedKeys(this.menuIds)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment