houzhongjian
2025-05-29 3880399bef4144fa15264f470a0a51034c0253c9
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
}
/** 初始化 **/