mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-08 22:57:11 +08:00
fix: 系统内置角色不允许修改权限
This commit is contained in:
@@ -378,7 +378,7 @@ const fetchRole = async (id: string) => {
|
||||
// 查询角色详情
|
||||
const { data } = await getRole(id)
|
||||
if (!disabled.value) {
|
||||
disabled.value = data.isSystem && data.code === 'admin'
|
||||
disabled.value = data.isSystem
|
||||
}
|
||||
isCascade.value = data.menuCheckStrictly
|
||||
// 更新选中键集合
|
||||
|
Reference in New Issue
Block a user