edit 章节
This commit is contained in:
parent
865574ec4c
commit
875cccae79
|
@ -143,8 +143,9 @@ const handleNodeClick = (data) => {
|
|||
nodeData.label = nodeData.itemtitle
|
||||
|
||||
let parentNode
|
||||
// 父级id == rootid 说明当前节点为一级节点
|
||||
if(nodeData.parentid == nodeData.rootid){
|
||||
// 存在children 则为一级节点
|
||||
if(nodeData.children){
|
||||
// 为一级节点
|
||||
parentNode = null
|
||||
}
|
||||
else{
|
||||
|
|
Loading…
Reference in New Issue