edit 章节

This commit is contained in:
lyc 2024-12-04 15:07:52 +08:00
parent 865574ec4c
commit 875cccae79
1 changed files with 3 additions and 2 deletions

View File

@ -143,8 +143,9 @@ const handleNodeClick = (data) => {
nodeData.label = nodeData.itemtitle nodeData.label = nodeData.itemtitle
let parentNode let parentNode
// id == rootid // children
if(nodeData.parentid == nodeData.rootid){ if(nodeData.children){
//
parentNode = null parentNode = null
} }
else{ else{