Compare commits

..

No commits in common. "c6b65102bde8cfef3b0a22639d72dbc335ff9743" and "488ad420d7c8f2278a4a4f0c5fd848de0ffff878" have entirely different histories.

1 changed files with 1 additions and 1 deletions

View File

@ -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})