From c8e7aa11292205c6e9979cf4794f8b40380e0ad0 Mon Sep 17 00:00:00 2001 From: SeasonsChange <1204992313@qq.com> Date: Sat, 23 Aug 2025 14:13:18 +0800 Subject: [PATCH] =?UTF-8?q?refactor(chat):=20=E9=87=8D=E6=9E=84=E8=81=8A?= =?UTF-8?q?=E5=A4=A9=E7=BB=84=E4=BB=B6=E7=BB=93=E6=9E=84=EF=BC=8C=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E6=B5=8B=E8=AF=95=E8=A7=86=E5=9B=BE=E5=92=8C=E6=9C=AA?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增单选、多选和表单字段组件,优化聊天主界面布局 移除QuestionRenderer测试视图及相关路由配置 清理ChatMain中未使用的DynamicSelect代码 添加LoadingAnimation加载动画组件 简化AIChatPage逻辑,移除SSE连接改用模拟数据 --- .../src/components/Chat/AIChatPage.vue | 293 ++++++++------ .../src/components/Chat/ChatMain.vue | 92 +---- .../src/components/Chat/ChatTree.vue | 383 ------------------ .../src/components/{ => Chat}/FormField.vue | 0 .../{ => Chat}/LoadingAnimation.vue | 0 .../{ => Chat}/MultipleChoiceOptions.vue | 0 .../{ => Chat}/QuestionRenderer.vue | 1 + .../{ => Chat}/SingleChoiceOptions.vue | 0 .../src/components/Chat/TreeNode.vue | 355 ---------------- .../src/components/QuestionRendererTest.vue | 300 -------------- prompto-lab-ui/src/router/index.ts | 8 - .../src/views/QuestionRendererTestView.vue | 11 - 12 files changed, 179 insertions(+), 1264 deletions(-) delete mode 100644 prompto-lab-ui/src/components/Chat/ChatTree.vue rename prompto-lab-ui/src/components/{ => Chat}/FormField.vue (100%) rename prompto-lab-ui/src/components/{ => Chat}/LoadingAnimation.vue (100%) rename prompto-lab-ui/src/components/{ => Chat}/MultipleChoiceOptions.vue (100%) rename prompto-lab-ui/src/components/{ => Chat}/QuestionRenderer.vue (99%) rename prompto-lab-ui/src/components/{ => Chat}/SingleChoiceOptions.vue (100%) delete mode 100644 prompto-lab-ui/src/components/Chat/TreeNode.vue delete mode 100644 prompto-lab-ui/src/components/QuestionRendererTest.vue delete mode 100644 prompto-lab-ui/src/views/QuestionRendererTestView.vue diff --git a/prompto-lab-ui/src/components/Chat/AIChatPage.vue b/prompto-lab-ui/src/components/Chat/AIChatPage.vue index 0a0b8af..63308f2 100644 --- a/prompto-lab-ui/src/components/Chat/AIChatPage.vue +++ b/prompto-lab-ui/src/components/Chat/AIChatPage.vue @@ -36,21 +36,12 @@
{{ JSON.stringify(currentQuestion, null, 2) }}
-