From ff11c43c32e670ace2948587f00f5af4a75c546f Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Tue, 3 Dec 2024 12:17:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B6=85=E7=BA=A7=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E6=A0=87=E8=AF=86superuser?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/elegant/routes.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/router/elegant/routes.ts b/src/router/elegant/routes.ts index 1f5a694..b705d35 100644 --- a/src/router/elegant/routes.ts +++ b/src/router/elegant/routes.ts @@ -80,7 +80,7 @@ export const generatedRoutes: GeneratedRoute[] = [ } }, - // 下面是管理员角色才有 + // 下面是指定角色才有 { name: 'function', path: '/function', @@ -90,7 +90,7 @@ export const generatedRoutes: GeneratedRoute[] = [ i18nKey: 'route.function', icon: 'icon-park-outline:all-application', order: 1002, - roles: ['admin'], + roles: ['superuser'], }, children: [ { @@ -208,7 +208,7 @@ export const generatedRoutes: GeneratedRoute[] = [ i18nKey: 'route.about', icon: 'fluent:book-information-24-regular', order: 1003, - roles: ['admin'] + roles: ['superuser'] } }, ];