edit 章节
This commit is contained in:
parent
865574ec4c
commit
875cccae79
|
@ -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{
|
||||||
|
|
Loading…
Reference in New Issue