提交 c89de940 编写于 作者: Y yurj26

fix(rich-text): 内容包含注释报错的bug (question/186587)

上级 d913a1ac
...@@ -92,10 +92,12 @@ export default function parseHtml (html) { ...@@ -92,10 +92,12 @@ export default function parseHtml (html) {
text: text text: text
} }
const parent = stacks[0] const parent = stacks[0]
if (!parent.children) { if (parent) {
parent.children = [] if (!parent.children) {
parent.children = []
}
parent.children.push(node)
} }
parent.children.push(node)
} }
}) })
return results.children return results.children
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册