From 91593d5d40e0acf009a05b4ea2fa8cd84d7eb50d Mon Sep 17 00:00:00 2001 From: cherishsince Date: Thu, 16 May 2024 16:04:21 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91AI=20Chat?= =?UTF-8?q?=20=E6=8A=BD=E7=A6=BB=20Markdown=20=E6=B8=B2=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/download.ts | 2 +- src/views/ai/chat/index.vue | 190 ++---------------------------------- 2 files changed, 7 insertions(+), 185 deletions(-) diff --git a/src/utils/download.ts b/src/utils/download.ts index ab200149..fe24ee27 100644 --- a/src/utils/download.ts +++ b/src/utils/download.ts @@ -29,7 +29,7 @@ const download = { html: (data: Blob, fileName: string) => { download0(data, fileName, 'text/html') }, - // 下载 Markdown 方法 + // 下载 MarkdownView 方法 markdown: (data: Blob, fileName: string) => { download0(data, fileName, 'text/markdown') } diff --git a/src/views/ai/chat/index.vue b/src/views/ai/chat/index.vue index 6dd6fa04..0da53f1e 100644 --- a/src/views/ai/chat/index.vue +++ b/src/views/ai/chat/index.vue @@ -107,8 +107,9 @@ {{ formatDate(item.createTime) }}
-
+ +
@@ -135,6 +136,7 @@
{{ item.content }}
+
@@ -198,33 +200,17 @@