feat: ✨ 新增路由守卫

This commit is contained in:
何嘉悦
2025-05-25 18:06:09 +08:00
parent 16b59d6ab2
commit f4d078ca07
52 changed files with 928 additions and 282 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
export const HOME_URL: string = '/chat';
// 登录页地址[默认]
export const LOGIN_URL: string = '/login';
// export const LOGIN_URL: string = '/login';
// 默认主题颜色
export const DEFAULT_THEME_COLOR: string = '#2992FF';
@@ -15,4 +15,4 @@ export const COLLAPSE_THRESHOLD: number = 600;
export const SIDE_BAR_WIDTH: number = 280;
// 路由白名单地址[本地存在的路由 staticRouter.ts 中]
export const ROUTER_WHITE_LIST: string[] = ['/500'];
export const ROUTER_WHITE_LIST: string[] = ['/chat', '/500', '/403', '/404'];