diff --git a/src/router/routes/modules/agent.ts b/src/router/routes/modules/agent.ts new file mode 100644 index 0000000..1cd422c --- /dev/null +++ b/src/router/routes/modules/agent.ts @@ -0,0 +1,39 @@ +/** + * 智能体应用 + */ + +import type { AppRouteRecordRaw } from '../types'; +import { MENU_GROUP_IDS } from '@/router/constants'; + +import IconRepository from '@/assets/svg/icon-repository.svg'; + +const COMPONENTS: AppRouteRecordRaw[] = [ + { + path: '/agent', + name: 'Agent', + redirect: 'agent/listData', + meta: { + locale: '品牌资产管理', + icon: IconRepository, + requiresAuth: true, + requireLogin: true, + roles: ['*'], + id: MENU_GROUP_IDS.PROPERTY_ID, + }, + children: [ + { + path: 'chat', + name: 'Chat', + meta: { + locale: '品牌信息', + requiresAuth: true, + requireLogin: true, + roles: ['*'], + }, + component: () => import('@/views/Agent/Chat'), + }, + ], + } +]; + +export default COMPONENTS; diff --git a/src/views/Agent/Chat/components/CozeChat.vue b/src/views/Agent/Chat/components/CozeChat.vue new file mode 100644 index 0000000..c5c559c --- /dev/null +++ b/src/views/Agent/Chat/components/CozeChat.vue @@ -0,0 +1,221 @@ + + + + + + + + + 正在加载聊天服务... + + + + + ⚠️ 聊天服务加载失败 + 重新加载 + + + + + + + diff --git a/src/views/Agent/Chat/index.vue b/src/views/Agent/Chat/index.vue new file mode 100644 index 0000000..9b98eeb --- /dev/null +++ b/src/views/Agent/Chat/index.vue @@ -0,0 +1,76 @@ + + + 我的应用 + + + + + + 刷新Token + + + + + +
正在加载聊天服务...
⚠️ 聊天服务加载失败