fix:修改格式; #28

Merged
yangws merged 1 commits from yangws_ws into main 2024-11-12 14:49:20 +08:00
1 changed files with 1 additions and 1 deletions

View File

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