From cc7f49fa8b05f73df14e5aafc6cb44df22b7c47c Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud <79562285+wangdan-fit2cloud@users.noreply.github.com> Date: Wed, 19 Feb 2025 15:48:04 +0800 Subject: [PATCH] perf: Improving the conversation to a left-right layout(#2286) * refactor: Optimize code * feat: Improving the conversation to a left-right layout(#2286) --- ui/package.json | 1 - .../component/question-content/index.vue | 61 ++++++++++--------- ui/src/components/markdown/MdRenderer.vue | 1 - .../components/markdown/ReasoningRander.vue | 1 - ui/src/views/chat/base/index.vue | 16 ++++- 5 files changed, 48 insertions(+), 32 deletions(-) diff --git a/ui/package.json b/ui/package.json index 3ec76495a..df369cee5 100644 --- a/ui/package.json +++ b/ui/package.json @@ -33,7 +33,6 @@ "lodash": "^4.17.21", "marked": "^12.0.2", "md-editor-v3": "^4.16.7", - "medium-zoom": "^1.1.0", "mermaid": "^10.9.0", "mitt": "^3.0.0", "moment": "^2.30.1", diff --git a/ui/src/components/ai-chat/component/question-content/index.vue b/ui/src/components/ai-chat/component/question-content/index.vue index c5b38aaf7..d60625c49 100644 --- a/ui/src/components/ai-chat/component/question-content/index.vue +++ b/ui/src/components/ai-chat/component/question-content/index.vue @@ -1,19 +1,7 @@ diff --git a/ui/src/components/markdown/MdRenderer.vue b/ui/src/components/markdown/MdRenderer.vue index 1cbdc7deb..5761bce44 100644 --- a/ui/src/components/markdown/MdRenderer.vue +++ b/ui/src/components/markdown/MdRenderer.vue @@ -30,7 +30,6 @@ >
+ :record="recordList" + > + +
@@ -57,6 +66,11 @@ const applicationDetail = computed({ }, set: (v) => {} }) +const recordList = ref([]) + +function newChat() { + recordList.value = [] +}