修改 没有parentNode 为null
This commit is contained in:
parent
6308d72267
commit
166c601075
|
@ -238,8 +238,7 @@ const handleNodeClick = (data, node) => {
|
||||||
const parentNode = node.parent.data;
|
const parentNode = node.parent.data;
|
||||||
|
|
||||||
if (Array.isArray(parentNode)) {
|
if (Array.isArray(parentNode)) {
|
||||||
let node = parentNode.filter(item => item.id == currentNode.id)
|
currentNode.parentNode = null
|
||||||
currentNode.parentNode = { ...(node[0]) }
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
currentNode.parentNode = parentNode
|
currentNode.parentNode = parentNode
|
||||||
|
|
Loading…
Reference in New Issue