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