From a25bd4c556b2ef24112d8ae1b31c5f9bf76cc0bd Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Tue, 27 Jun 2023 16:15:42 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E4=BF=AE=E5=A4=8Dxmind=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simple-mind-map/src/parse/xmind.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) {