From a5c92999b1c44deed7900198ff59ff8ea65b7cbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=BF=97=E5=86=9B?= <543024265@qq.com> Date: Thu, 10 Jul 2025 19:05:38 +0800 Subject: [PATCH] =?UTF-8?q?feat(property-marketing):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=9C=88=E6=95=B0=E6=8D=AE=E5=A4=8D=E5=88=B6=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96=E7=BB=84=E4=BB=B6=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/routes/modules/agent.ts | 39 ++++ src/views/Agent/Chat/components/CozeChat.vue | 221 +++++++++++++++++++ src/views/Agent/Chat/index.vue | 76 +++++++ 3 files changed, 336 insertions(+) create mode 100644 src/router/routes/modules/agent.ts create mode 100644 src/views/Agent/Chat/components/CozeChat.vue create mode 100644 src/views/Agent/Chat/index.vue 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 @@ + + + + +