From 49259f1aa3ed1831f38b4adb0e421e39f5a4c123 Mon Sep 17 00:00:00 2001 From: yanyiwen Date: Wed, 14 May 2025 23:27:46 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E9=87=8D?= =?UTF-8?q?=E6=9E=84=E5=89=8D=E7=AB=AFAI=E5=8A=A9=E7=90=86=E7=9A=84?= =?UTF-8?q?=E9=80=BB=E8=BE=91=EF=BC=8C=E6=94=AF=E6=8C=81=E4=B8=8A=E4=B8=8B?= =?UTF-8?q?=E6=96=87=E5=92=8CMarkdown=E6=A0=BC=E5=BC=8F=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E2=80=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_web/src/layout/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spug_web/src/layout/index.js b/spug_web/src/layout/index.js index b4d2c7a..ea9f131 100644 --- a/spug_web/src/layout/index.js +++ b/spug_web/src/layout/index.js @@ -14,6 +14,7 @@ import routes from '../routes'; import { hasPermission, isMobile } from 'libs'; import styles from './layout.module.less'; import { RobotOutlined } from '@ant-design/icons'; // AI 助理图标 +import Markdown from 'markdown-to-jsx'; // 引入 markdown-to-jsx function initRoutes(Routes, routes) { for (let route of routes) { @@ -149,7 +150,7 @@ export default function () { }} >
{msg.role === 'user' ? '用户:' : 'AI 助理:'}
- {msg.content} +