Merge pull request '修改 没有parentNode 为null' (#22) from lyc-dev into main
This commit is contained in:
commit
8fd378ec1d
|
@ -238,8 +238,7 @@ const handleNodeClick = (data, node) => {
|
|||
const parentNode = node.parent.data;
|
||||
|
||||
if (Array.isArray(parentNode)) {
|
||||
let node = parentNode.filter(item => item.id == currentNode.id)
|
||||
currentNode.parentNode = { ...(node[0]) }
|
||||
currentNode.parentNode = null
|
||||
}
|
||||
else {
|
||||
currentNode.parentNode = parentNode
|
||||
|
|
Loading…
Reference in New Issue