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
|
||||
|
||||
let parentNode
|
||||
// 父级id == rootid 说明当前节点为一级节点
|
||||
if(nodeData.parentid == nodeData.rootid){
|
||||
// 存在children 则为一级节点
|
||||
if(nodeData.children){
|
||||
// 为一级节点
|
||||
parentNode = null
|
||||
}
|
||||
else{
|
||||
|
|
Loading…
Reference in New Issue