Merge pull request 'fix:修改格式;' (#28) from yangws_ws into main
Reviewed-on: #28
This commit is contained in:
commit
c6b65102bd
|
@ -34,7 +34,7 @@
|
|||
const recursive = (currentNode) => {
|
||||
// 这里添加节点参数
|
||||
if (currentNode.parentNode) {
|
||||
obj.unshift(Object.assign({curentId: currentNode.id,title:currentNode.itemtitle}, currentNode.parentNode))
|
||||
obj.unshift({id: currentNode.id,title:currentNode.itemtitle})
|
||||
recursive(currentNode.parentNode)
|
||||
} else {
|
||||
obj.unshift({id: currentNode.id,title:currentNode.itemtitle})
|
||||
|
|
Loading…
Reference in New Issue