Compare commits
No commits in common. "c6b65102bde8cfef3b0a22639d72dbc335ff9743" and "488ad420d7c8f2278a4a4f0c5fd848de0ffff878" have entirely different histories.
c6b65102bd
...
488ad420d7
|
@ -34,7 +34,7 @@
|
|||
const recursive = (currentNode) => {
|
||||
// 这里添加节点参数
|
||||
if (currentNode.parentNode) {
|
||||
obj.unshift({id: currentNode.id,title:currentNode.itemtitle})
|
||||
obj.unshift(Object.assign({curentId: currentNode.id,title:currentNode.itemtitle}, currentNode.parentNode))
|
||||
recursive(currentNode.parentNode)
|
||||
} else {
|
||||
obj.unshift({id: currentNode.id,title:currentNode.itemtitle})
|
||||
|
|
Loading…
Reference in New Issue