zhuhao_dev #23

Merged
zhuhao merged 3 commits from zhuhao_dev into main 2024-07-15 18:22:45 +08:00
1 changed files with 1 additions and 2 deletions
Showing only changes of commit 94fc5c45a1 - Show all commits

View File

@ -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