From bec94315ad2c0932bd655d8947276abd18dbf6a0 Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期三, 18 六月 2025 09:53:34 +0800 Subject: [PATCH] 转炉大模型功能完善 --- src/components/MarkdownView/index.vue | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/components/MarkdownView/index.vue b/src/components/MarkdownView/index.vue index 0b1837f..65541f6 100644 --- a/src/components/MarkdownView/index.vue +++ b/src/components/MarkdownView/index.vue @@ -39,7 +39,10 @@ /** 保留换行符 */ const formatContent = (text) => { - return text.replace(/\n/g, '<br>') + if (text) { + return text.replace(/\n/g, '<br>') + } + return text } /** 初始化 **/ -- Gitblit v1.9.3