From f6c84eb2ee63041ee7ed1c78bd7b4c2ac6ddb9a0 Mon Sep 17 00:00:00 2001 From: CZH <1299713871@qq.com> Date: Thu, 7 Aug 2025 11:44:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E8=AF=9D=E6=B6=88=E6=81=AF=E4=BD=93?= =?UTF-8?q?=E9=80=82=E9=85=8D=E5=9B=BE=E7=89=87=E8=BE=93=E5=87=BA=20wj?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chat-client/src/views/chatweb/components/ChatBox.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/chat-client/src/views/chatweb/components/ChatBox.vue b/chat-client/src/views/chatweb/components/ChatBox.vue index 69b4df4..a8e3d4c 100644 --- a/chat-client/src/views/chatweb/components/ChatBox.vue +++ b/chat-client/src/views/chatweb/components/ChatBox.vue @@ -687,6 +687,8 @@ const parseECharts = (text: string): { processedText: string; echarts: EChartDat // 格式化答案 const formatAnswer = async (text: string) => { try { + // text += `\n\n` + // 先解析ECharts代码块 const { processedText, echarts } = parseECharts(text) @@ -715,16 +717,16 @@ const formatAnswer = async (text: string) => { ).replace( /