提交 c89de940 编写于 作者: Y yurj26

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

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