diff --git a/src/api/all/agent.ts b/src/api/all/agent.ts index d8cee3c..f95c0c9 100644 --- a/src/api/all/agent.ts +++ b/src/api/all/agent.ts @@ -1,6 +1,7 @@ import Http from '@/api'; // 获取聊天智能体 export const getChatAgent = (id: number) => { + console.log('param.id',id); return Http.get(`/v1/agent/getChatAgent/${id}`); }; diff --git a/src/router/routes/modules/agent.ts b/src/router/routes/modules/agent.ts index f36fcb4..24544a0 100644 --- a/src/router/routes/modules/agent.ts +++ b/src/router/routes/modules/agent.ts @@ -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, }, }, ], diff --git a/src/views/Agent/Chat/index.vue b/src/views/Agent/Chat/index.vue index b2a0231..5f42670 100644 --- a/src/views/Agent/Chat/index.vue +++ b/src/views/Agent/Chat/index.vue @@ -4,11 +4,7 @@
- + @@ -23,7 +19,7 @@