[代码优化](v2.6):角色管理选择菜单Bug修复
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user