feat: 添加权限配置页面

This commit is contained in:
yangsy
2026-01-13 13:15:42 +08:00
parent 01ebcfa57d
commit aee45ca461
9 changed files with 485 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ import { useAlarmStore, useSettingStore, useUserStore } from '@/stores';
import { parseErrorFeedback } from '@/utils';
import { useIsFetching, useIsMutating, useMutation } from '@tanstack/vue-query';
import { isCancel } from 'axios';
import { ChevronDownIcon, ChevronsLeftIcon, ChevronsRightIcon, ComputerIcon, LogOutIcon, LogsIcon, MapPinIcon, SettingsIcon, SirenIcon } from 'lucide-vue-next';
import { ChevronDownIcon, ChevronsLeftIcon, ChevronsRightIcon, ComputerIcon, KeyIcon, LogOutIcon, LogsIcon, MapPinIcon, SettingsIcon, SirenIcon } from 'lucide-vue-next';
import {
NBadge,
NButton,
@@ -106,6 +106,12 @@ const menuOptions: MenuOption[] = [
},
],
},
{
label: () => h(RouterLink, { to: '/permission' }, { default: () => '权限管理' }),
key: '/permission',
show: userStore.isLamp,
icon: renderIcon(KeyIcon),
},
];
const dropdownOptions: DropdownOption[] = [