From 1f2ab85a685d7bec24bd3ed819f4549641f8be27 Mon Sep 17 00:00:00 2001 From: bestlee Date: Sat, 10 Oct 2026 10:14:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E7=AE=A1=E7=90=86-=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E6=9D=83=E9=99=90=E5=92=8C=E7=BC=96=E8=BE=91=E6=9D=83?= =?UTF-8?q?=E9=99=90=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/systemManage/role/index.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/views/systemManage/role/index.vue b/src/views/systemManage/role/index.vue index 2965ef6..8db2c38 100644 --- a/src/views/systemManage/role/index.vue +++ b/src/views/systemManage/role/index.vue @@ -5,6 +5,7 @@ import { Icon } from '@iconify/vue' import { useThemeStore } from '@/store/modules/theme'; import { useRouter } from 'vue-router'; import { NButton } from 'naive-ui'; +import { localStg } from '@/utils/storage'; import { roleListApi, editRoleApi } from '@/service/api/role'; const router = useRouter(); @@ -57,6 +58,7 @@ const columns = ref([ text: true, size: 'tiny', type: 'primary', + disabled: row.id === 1 && localStg.get('userInfo')?.role_id !== 1, onClick: () => handleSetPermission(row) }, { // 渲染按钮文本 @@ -66,6 +68,7 @@ const columns = ref([ text: true, size: 'tiny', type: 'primary', + disabled: row.id === 1 && localStg.get('userInfo')?.role_id !== 1, onClick: () => handleEdit(row) }, { // 渲染按钮文本