fix: 系统内置角色不允许修改权限

This commit is contained in:
2025-07-26 21:44:58 +08:00
parent 3991186c8a
commit 4b0aea536c

View File

@@ -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
// 更新选中键集合