Compare commits
2 Commits
488ad420d7
...
c6b65102bd
Author | SHA1 | Date |
---|---|---|
yangws | c6b65102bd | |
小杨 | 2513215a52 |
|
@ -34,7 +34,7 @@
|
||||||
const recursive = (currentNode) => {
|
const recursive = (currentNode) => {
|
||||||
// 这里添加节点参数
|
// 这里添加节点参数
|
||||||
if (currentNode.parentNode) {
|
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)
|
recursive(currentNode.parentNode)
|
||||||
} else {
|
} else {
|
||||||
obj.unshift({id: currentNode.id,title:currentNode.itemtitle})
|
obj.unshift({id: currentNode.id,title:currentNode.itemtitle})
|
||||||
|
|
Loading…
Reference in New Issue