refactor(agent): 重构智能体模块

- 优化了路由配置,调整了菜单项的层级结构
- 重构了聊天页面的逻辑,简化了配置项
- 优化了历史聊天组件的使用方式
- 调整了智能体列表的展示样式
This commit is contained in:
林志军
2025-07-18 10:11:13 +08:00
parent af147625ae
commit 81a36d72cc
4 changed files with 26 additions and 90 deletions

View File

@ -7,24 +7,24 @@ const COMPONENTS: AppRouteRecordRaw[] = [
{
path: '/agent',
name: 'Agent',
redirect: 'agent/listData',
redirect: 'agent/index',
meta: {
locale: '扣子智能体',
icon: IconRepository,
requiresAuth: true,
requireLogin: true,
roles: ['*'],
id: MENU_GROUP_IDS.AGENT,
id: MENU_GROUP_IDS.PROPERTY_ID,
},
children: [
{
path: 'index',
name: 'AgentListData',
name: 'AgentIndex',
component: () => import('@/views/agent/index'),
meta: {
locale: '智能体列表',
requiresAuth: false,
requireLogin: true,
id: MENU_GROUP_IDS.WORK_BENCH_ID,
},
},
{
@ -35,16 +35,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
hideSidebar: true,
requiresAuth: false,
requireLogin: true,
},
},
{
path: 'workFlow',
name: 'AgentWorkFlow',
component: () => import('@/views/agent/work-flow'),
meta: {
hideSidebar: true,
requiresAuth: false,
requireLogin: true,
id: MENU_GROUP_IDS.WORK_BENCH_ID,
},
},
],