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(//gi, (tableHtml: string) => ( + `
${tableHtml}
` + )); } catch (e) { return displayText; } @@ -4908,7 +4912,7 @@ const showChatRating = ref(false);
@@ -5652,10 +5656,28 @@ const showChatRating = ref(false);