mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 10:27:44 +08:00
修复判断
This commit is contained in:
parent
48b5ff5f1c
commit
a1bbe543ba
@ -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+)\)/)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user