Merge pull request 'edit 章节' (#423) from lyc-dev into main
This commit is contained in:
commit
8bd1eec801
|
@ -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