src/components/MarkdownView/index.vue @@ -39,8 +39,11 @@ /** 保留换行符 */ const formatContent = (text) => { if (text) { return text.replace(/\n/g, '<br>') } return text } /** 初始化 **/ onMounted(async () => {