Fix:修复拖拽移动一个节点为另一个节点的子节点时该节点的父节点指向未更新的问题
This commit is contained in:
parent
6c33984b8c
commit
a03091b28c
@ -693,11 +693,11 @@ class Render {
|
|||||||
if (node.isRoot) {
|
if (node.isRoot) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let copyData = copyNodeTree({}, node, false, true)
|
// let copyData = copyNodeTree({}, node, false, true)
|
||||||
this.removeActiveNode(node)
|
this.removeActiveNode(node)
|
||||||
this.removeOneNode(node)
|
this.removeOneNode(node)
|
||||||
this.mindMap.emit('node_active', null, this.activeNodeList)
|
this.mindMap.emit('node_active', null, this.activeNodeList)
|
||||||
toNode.nodeData.children.push(copyData)
|
toNode.nodeData.children.push(node.nodeData)
|
||||||
this.mindMap.render()
|
this.mindMap.render()
|
||||||
if (toNode.isRoot) {
|
if (toNode.isRoot) {
|
||||||
toNode.destroy()
|
toNode.destroy()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user