From c01ddb8b2362ac474382cca3bd9f75dccff9bee0 Mon Sep 17 00:00:00 2001 From: "DESKTOP-JKIE562\\PC" <1013397054@qq.com> Date: Wed, 10 Jun 2026 14:02:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(chat):=20=E5=9B=BA=E8=B5=84=E5=9B=9E?= =?UTF-8?q?=E5=A4=8D=E8=A1=A8=E5=8D=95=E5=AD=97=E6=AE=B5=E5=A4=AA=E5=A4=9A?= =?UTF-8?q?=E6=97=B6=E6=BB=91=E5=8A=A8=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/ChatView.vue | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/frontend/src/views/ChatView.vue b/frontend/src/views/ChatView.vue index 41ac2303..7cf91761 100644 --- a/frontend/src/views/ChatView.vue +++ b/frontend/src/views/ChatView.vue @@ -349,7 +349,11 @@ const renderMarkdown = (text: string) => { const displayText = sanitizeShippingConversationText(stripReasoningPrelude(stripped)); try { // 把 # 标题、代码块、[链接](url) 等 Markdown 解析成 HTML - return marked.parse(displayText); + const rendered = marked.parse(displayText); + const html = typeof rendered === 'string' ? rendered : displayText; + return html.replace(/