Compare commits
2 Commits
cc39253a79
...
8bd1eec801
Author | SHA1 | Date |
---|---|---|
lyc | 8bd1eec801 | |
lyc | 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