From b24a19a0356fc8a6c9df7186b292f43484df1558 Mon Sep 17 00:00:00 2001 From: Brian Yang Date: Wed, 22 May 2024 15:45:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E5=8D=95=E6=AC=A1=E8=81=8A=E5=A4=A9=E7=9A=84=E5=85=A8=E9=83=A8?= =?UTF-8?q?=E5=AF=B9=E8=AF=9D=E8=AE=B0=E5=BD=95=E4=B8=BAMarkdown=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=88=96HTML=E6=96=87=E4=BB=B6=20(#502)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/package.json | 3 ++ ui/src/views/chat/pc/index.vue | 57 +++++++++++++++++++++++++++++++++- 2 files changed, 59 insertions(+), 1 deletion(-) diff --git a/ui/package.json b/ui/package.json index 229b9d3a..4bc39ccc 100644 --- a/ui/package.json +++ b/ui/package.json @@ -19,6 +19,7 @@ "cropperjs": "^1.6.2", "echarts": "^5.5.0", "element-plus": "^2.5.6", + "file-saver": "^2.0.5", "install": "^0.13.0", "katex": "^0.16.10", "lodash": "^4.17.21", @@ -31,6 +32,7 @@ "markdown-it-sup": "^1.0.0", "markdown-it-task-lists": "^2.1.1", "markdown-it-toc-done-right": "^4.2.0", + "marked": "^12.0.2", "md-editor-v3": "4.12.1", "medium-zoom": "^1.1.0", "mermaid": "^10.9.0", @@ -49,6 +51,7 @@ "devDependencies": { "@rushstack/eslint-patch": "^1.3.2", "@tsconfig/node18": "^18.2.0", + "@types/file-saver": "^2.0.7", "@types/jsdom": "^21.1.1", "@types/markdown-it": "^13.0.7", "@types/markdown-it-highlightjs": "^3.3.4", diff --git a/ui/src/views/chat/pc/index.vue b/ui/src/views/chat/pc/index.vue index 4b91d2e6..c1105591 100644 --- a/ui/src/views/chat/pc/index.vue +++ b/ui/src/views/chat/pc/index.vue @@ -7,7 +7,10 @@
- 新建对话 + + + + 新建对话

历史记录

@@ -46,6 +49,20 @@ + + + + {{ paginationConfig.total }} 条提问 @@ -76,10 +93,14 @@