mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-04-16 06:06:37 +08:00
feat: 项目加载优化
This commit is contained in:
@@ -12,4 +12,18 @@ export const COLLAPSE_THRESHOLD: number = 600;
|
||||
export const SIDE_BAR_WIDTH: number = 280;
|
||||
|
||||
// 路由白名单地址[本地存在的路由 staticRouter.ts 中]
|
||||
export const ROUTER_WHITE_LIST: string[] = ['/chat', '/chat/conversation', '/chat/image', '/chat/video', '/model-library', '/403', '/404'];
|
||||
// 包含所有无需登录即可访问的公开路径
|
||||
export const ROUTER_WHITE_LIST: string[] = [
|
||||
'/chat',
|
||||
'/chat/conversation',
|
||||
'/chat/image',
|
||||
'/chat/video',
|
||||
'/chat/agent',
|
||||
'/model-library',
|
||||
'/products',
|
||||
'/pay-result',
|
||||
'/activity/:id',
|
||||
'/announcement/:id',
|
||||
'/403',
|
||||
'/404',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user