Merge pull request 'edit 章节' (#423) from lyc-dev into main

This commit is contained in:
lyc 2024-12-04 15:08:27 +08:00
commit 8bd1eec801
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{