Fix:修复概要节点会响应快捷键添加节点的问题
This commit is contained in:
parent
5676e952f3
commit
1749705694
@ -425,6 +425,9 @@ class Render {
|
|||||||
let { defaultInsertSecondLevelNodeText, defaultInsertBelowSecondLevelNodeText } = this.mindMap.opt
|
let { defaultInsertSecondLevelNodeText, defaultInsertBelowSecondLevelNodeText } = this.mindMap.opt
|
||||||
let list = appointNodes.length > 0 ? appointNodes : this.activeNodeList
|
let list = appointNodes.length > 0 ? appointNodes : this.activeNodeList
|
||||||
let first = list[0]
|
let first = list[0]
|
||||||
|
if (first.isGeneralization) {
|
||||||
|
return
|
||||||
|
}
|
||||||
if (first.isRoot) {
|
if (first.isRoot) {
|
||||||
this.insertChildNode(openEdit, appointNodes, appointData)
|
this.insertChildNode(openEdit, appointNodes, appointData)
|
||||||
} else {
|
} else {
|
||||||
@ -455,6 +458,9 @@ class Render {
|
|||||||
let { defaultInsertSecondLevelNodeText, defaultInsertBelowSecondLevelNodeText } = this.mindMap.opt
|
let { defaultInsertSecondLevelNodeText, defaultInsertBelowSecondLevelNodeText } = this.mindMap.opt
|
||||||
let list = appointNodes.length > 0 ? appointNodes : this.activeNodeList
|
let list = appointNodes.length > 0 ? appointNodes : this.activeNodeList
|
||||||
list.forEach(node => {
|
list.forEach(node => {
|
||||||
|
if (node.isGeneralization) {
|
||||||
|
return
|
||||||
|
}
|
||||||
if (!node.nodeData.children) {
|
if (!node.nodeData.children) {
|
||||||
node.nodeData.children = []
|
node.nodeData.children = []
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user