feat(agent): 重构聊天页面布局,调整路由配置,优化Coze SDK集成逻辑

This commit is contained in:
林志军
2025-07-11 18:30:44 +08:00
parent f7ff8b2bd5
commit 53a19496a4
3 changed files with 48 additions and 110 deletions

View File

@ -35,6 +35,17 @@ export const router = createRouter({
id: MENU_GROUP_IDS.WORK_BENCH_ID,
},
},
{
path: '/agent/chat',
name: 'Chat',
component: () => import('@/views/Agent/chat'),
meta: {
hideSidebar: true,
requiresAuth: false,
requireLogin: true,
id: MENU_GROUP_IDS.WORK_BENCH_ID,
},
},
{
path: '/permission',
name: 'permission',

View File

@ -13,7 +13,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
name: 'Agent',
redirect: 'agent/listData',
meta: {
locale: '品牌资产管理',
locale: '扣子智能体',
icon: IconRepository,
requiresAuth: true,
requireLogin: true,
@ -21,14 +21,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
id: MENU_GROUP_IDS.PROPERTY_ID,
},
children: [
{
path: 'chat',
name: 'Chat',
meta: {
hideInMenu: true,
},
component: () => import('@/views/Agent/Chat'),
},
],
}
];