fix(ai): ChatPage import/layout 修复 + 迁移表名列名修正 + 路由权限注册
- ChatPage: 图标从 antd 移到 @ant-design/icons,Layout/Sider 改为 div 布局避免 Header 遮挡 - routeConfig: 注册 /ai/chat 路由权限 (ai.chat.session.list/manage) - 迁移 153: ai_tenant_configs → ai_tenant_config 表名修正 - 迁移 154: menus.name/is_external/status → title/visible/menu_type 列名修正 - 迁移 151/152: AI 配置菜单父级修复 + AI Provider 权限 seed
This commit is contained in:
@@ -244,6 +244,12 @@ const ENTRIES: RoutePermissionEntry[] = [
|
||||
path: "/health/schedules",
|
||||
permissions: ["health.appointment.list", "health.appointment.manage"],
|
||||
},
|
||||
|
||||
// ===== AI 聊天 =====
|
||||
{
|
||||
path: "/ai/chat",
|
||||
permissions: ["ai.chat.session.list", "ai.chat.session.manage"],
|
||||
},
|
||||
];
|
||||
|
||||
/** 活跃路由的权限映射 — 自动从配置生成,供 PrivateRoute 使用 */
|
||||
|
||||
Reference in New Issue
Block a user