vue數據處理:把數組處理成適用於tree組件的數據

例: 數據處理前: [{"id":1,"pid":0,"name":"默認維度","type":"0"}, {"id":2,"pid":1,"name":"上海科技有限公司","type":"1"}, {"id":3,"pid":2,"name":"北京科技有限公司","type":"1"}, {"id":4,"pid":2,"name":"北京科技有限公司","type":"1"}, {"id"
相關文章
相關標籤/搜索