提交 6dde571d 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

fix(app): text (question/172667)

上级 c51bee7e
......@@ -38,7 +38,7 @@ function parseText (el) {
}
})
el.children = [{ type: 2, expression: expression.join('+'), tokens: [] }]
} else if (children.length === 1) {
} else if (children.length === 1 && children[0].text) {
children[0].text = children[0].text.replace(/\n/g, '').replace(/\\n/g, '\n')
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册