diff --git a/src/components/layout/nav.ts b/src/components/layout/nav.ts index c58ec1d..5cc77fc 100644 --- a/src/components/layout/nav.ts +++ b/src/components/layout/nav.ts @@ -34,6 +34,7 @@ export interface NavItem { icon: LucideIcon /** hide when the user lacks this permission (super-admin always passes) */ permission?: string + target?: string } export interface NavGroup { @@ -110,6 +111,7 @@ export const NAV_GROUPS: NavGroup[] = [ to: '/api-docs', icon: FileJson, permission: 'auth:api-docs:read', + target: '_blank', }, { label: '数据库管理台', diff --git a/src/routes/_authed.tsx b/src/routes/_authed.tsx index 0299e89..df8d3e2 100644 --- a/src/routes/_authed.tsx +++ b/src/routes/_authed.tsx @@ -99,6 +99,7 @@ function AuthedLayout() {