feat(frontend): 添加 OAuth 回调路由
- 新增 /auth/callback 路由用于接收 OAuth 授权回调 - 优化路由配置和文档 - 统一代码格式
This commit is contained in:
18
frontend/src/router/meta.d.ts
vendored
18
frontend/src/router/meta.d.ts
vendored
@@ -3,7 +3,7 @@
|
||||
* Extends the RouteMeta interface with custom properties
|
||||
*/
|
||||
|
||||
import 'vue-router';
|
||||
import 'vue-router'
|
||||
|
||||
declare module 'vue-router' {
|
||||
interface RouteMeta {
|
||||
@@ -11,36 +11,36 @@ declare module 'vue-router' {
|
||||
* Whether this route requires authentication
|
||||
* @default true
|
||||
*/
|
||||
requiresAuth?: boolean;
|
||||
requiresAuth?: boolean
|
||||
|
||||
/**
|
||||
* Whether this route requires admin role
|
||||
* @default false
|
||||
*/
|
||||
requiresAdmin?: boolean;
|
||||
requiresAdmin?: boolean
|
||||
|
||||
/**
|
||||
* Page title for this route
|
||||
*/
|
||||
title?: string;
|
||||
title?: string
|
||||
|
||||
/**
|
||||
* Optional breadcrumb items for navigation
|
||||
*/
|
||||
breadcrumbs?: Array<{
|
||||
label: string;
|
||||
to?: string;
|
||||
}>;
|
||||
label: string
|
||||
to?: string
|
||||
}>
|
||||
|
||||
/**
|
||||
* Icon name for this route (for sidebar navigation)
|
||||
*/
|
||||
icon?: string;
|
||||
icon?: string
|
||||
|
||||
/**
|
||||
* Whether to hide this route from navigation menu
|
||||
* @default false
|
||||
*/
|
||||
hideInMenu?: boolean;
|
||||
hideInMenu?: boolean
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user