From aafe4fca47d74528ba9753ce07d2331c65f3fc24 Mon Sep 17 00:00:00 2001 From: dongyukun <1208714201@qq.com> Date: 星期五, 06 六月 2025 10:04:01 +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