From a3123cd602e2e0cddc1daf4bfbb5390c75ac1627 Mon Sep 17 00:00:00 2001 From: "DESKTOP-JKIE562\\PC" <1013397054@qq.com> Date: Sat, 6 Jun 2026 10:42:10 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=BA=94=E7=94=A8=E7=AE=A1=E7=90=86):?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BA=94=E7=94=A8=E7=AE=A1=E7=90=86=E4=BB=8B?= =?UTF-8?q?=E7=BB=8D=E6=8F=8F=E8=BF=B0=E5=8F=8A=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E5=B8=B8=E8=A7=81=E9=97=AE=E9=A2=98=20refactor(chat):chat?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=8E=A5=E5=8F=A3=E8=8E=B7=E5=8F=96=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E7=AE=A1=E7=90=86=E4=B8=AD=E7=9A=84=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E4=BB=8B=E7=BB=8D=E5=8F=8A=E5=B8=B8=E8=A7=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/modules/agents/AgentsPage.vue | 62 ++++++ .../agents/composables/useAgentsAdmin.ts | 39 +++- .../src/features/admin/types/agent.types.ts | 9 + frontend/src/views/ChatView.vue | 178 +++++++++++++----- 4 files changed, 241 insertions(+), 47 deletions(-) diff --git a/frontend/src/features/admin/modules/agents/AgentsPage.vue b/frontend/src/features/admin/modules/agents/AgentsPage.vue index e4c66bdd..9d57d0f1 100644 --- a/frontend/src/features/admin/modules/agents/AgentsPage.vue +++ b/frontend/src/features/admin/modules/agents/AgentsPage.vue @@ -37,6 +37,8 @@ const { resetForm, selectAgent, submitAgent, + addSuggestedQuestion, + removeSuggestedQuestion, deleteAgent, openTestModal, runAgentTest, @@ -133,6 +135,66 @@ onMounted(() => { :placeholder="t('admin.agent.fields.descPlaceholder')" /> + +
+
+ + +
+ +
+ + +
+ +
+ 暂未配置常见问题,点击“添加问题”后会同步到对应 Agent 的 Chat 欢迎页。 +
+ +
+
+
+ + + +
+
+
+
- - 我是你的7x24小时专属HR政策助手。无需手动检索文档,只需用日常说话的方式提问,我能从公司最新、最全的规章制度中,为你精准提取并总结答案。 - - - 我是你的7x24小时专属AI数字人。无需手动检索文档,只需用日常说话的方式提问,我能从公司最新、最全的人事规章制度中,为你精准提取并总结答案。 + + {{ agentDescription }} - @@ -2887,61 +2970,64 @@ const showChatRating = ref(false);
-
-