diff --git a/simple-mind-map/src/parse/xmind.js b/simple-mind-map/src/parse/xmind.js index 4f4a3faf..801a3e92 100644 --- a/simple-mind-map/src/parse/xmind.js +++ b/simple-mind-map/src/parse/xmind.js @@ -44,7 +44,8 @@ const transformXmind = content => { } // 节点备注 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)) {