How to add a property to a series of objects nested within an array?

前端 未结 0 1977
小蘑菇
小蘑菇 2020-11-28 01:10

From the call to an api endpoint, I get the following array of nested objects, which is a directory tree

const tree = [
  {
    label: "OTHER",
             


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题