Fix:修复xmind导入报错

This commit is contained in:
wanglin2 2023-06-27 16:15:42 +08:00
parent efe205ae70
commit a25bd4c556

View File

@ -44,7 +44,8 @@ const transformXmind = content => {
} }
// 节点备注 // 节点备注
if (node.notes) { if (node.notes) {
newNode.data.note = (node.notes.realHTML || node.notes.plain).content let notesData = node.notes.realHTML || node.notes.plain
newNode.data.note = notesData ? notesData.content || '' : ''
} }
// 超链接 // 超链接
if (node.href && /^https?:\/\//.test(node.href)) { if (node.href && /^https?:\/\//.test(node.href)) {