From 10beee84fb94f739e9497b5569714654e6d44857 Mon Sep 17 00:00:00 2001 From: cherishsince Date: Mon, 13 May 2024 18:26:28 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E3=80=91=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E5=A2=9E=E5=8A=A0=20marked=20=E6=B8=B2=E6=9F=93=20mar?= =?UTF-8?q?kdown?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/views/ai/chat/index.vue | 26 ++++++++++++++++++-------- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 21a57724..c8dab2b8 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "highlight.js": "^11.9.0", "jsencrypt": "^3.3.2", "lodash-es": "^4.17.21", + "marked": "^12.0.2", "min-dash": "^4.1.1", "mitt": "^3.0.1", "nprogress": "^0.2.0", diff --git a/src/views/ai/chat/index.vue b/src/views/ai/chat/index.vue index 6b43e706..2e5cead6 100644 --- a/src/views/ai/chat/index.vue +++ b/src/views/ai/chat/index.vue @@ -98,9 +98,7 @@ {{formatDate(item.createTime)}}
- - {{item.content}} - +
@@ -126,9 +124,7 @@ {{formatDate(item.createTime)}}
- - {{item.content}} - +
@@ -165,9 +161,12 @@