Compare commits
No commits in common. "8bd1eec801f96bef6c7714e9d2140c798e669fde" and "cc39253a7937200123a4f9d68d29125797666aab" have entirely different histories.
8bd1eec801
...
cc39253a79
|
@ -143,9 +143,8 @@ const handleNodeClick = (data) => {
|
|||
nodeData.label = nodeData.itemtitle
|
||||
|
||||
let parentNode
|
||||
// 存在children 则为一级节点
|
||||
if(nodeData.children){
|
||||
// 为一级节点
|
||||
// 父级id == rootid 说明当前节点为一级节点
|
||||
if(nodeData.parentid == nodeData.rootid){
|
||||
parentNode = null
|
||||
}
|
||||
else{
|
||||
|
|
Loading…
Reference in New Issue