Skip to content

Commit 4b0aea5

Browse files
committed
fix: 系统内置角色不允许修改权限
1 parent 3991186 commit 4b0aea5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/system/role/components/Permission.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ const fetchRole = async (id: string) => {
378378
// 查询角色详情
379379
const { data } = await getRole(id)
380380
if (!disabled.value) {
381-
disabled.value = data.isSystem && data.code === 'admin'
381+
disabled.value = data.isSystem
382382
}
383383
isCascade.value = data.menuCheckStrictly
384384
// 更新选中键集合

0 commit comments

Comments
 (0)