From a1bbe543ba5e6a5a4f9bf2ea54f59d06f43be9d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E7=89=9B=E4=BB=94?= <635750556@qq.com> Date: Fri, 17 Nov 2023 17:03:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simple-mind-map/src/parse/xmind.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple-mind-map/src/parse/xmind.js b/simple-mind-map/src/parse/xmind.js index 430b286d..378b6ede 100644 --- a/simple-mind-map/src/parse/xmind.js +++ b/simple-mind-map/src/parse/xmind.js @@ -262,7 +262,7 @@ const transformOldXmind = content => { // 分析概要位置 // xmind 支持合并概要,现在的组件不支持合并概要,分别拆分开来 let summariesPosition = {} - if (typeof summariesNode == 'undefined' && summariesNode.elements && summariesNode.elements.length > 0) { + if (typeof summariesNode != 'undefined' && summariesNode.elements && summariesNode.elements.length > 0) { summariesNode.elements.forEach(item => { // 使用正则表达式提取位置数字,例如 (2,3) const match = item.attributes.range.match(/\((\d+),(\d+)\)/)