Compare commits

...

2 Commits

Author SHA1 Message Date
yangws c6b65102bd Merge pull request 'fix:修改格式;' (#28) from yangws_ws into main
Reviewed-on: #28
2024-11-12 14:49:19 +08:00
小杨 2513215a52 fix:修改格式; 2024-11-12 14:47:47 +08:00
1 changed files with 1 additions and 1 deletions

View File

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