functiondigui(val){
letarr=[];
if(val.length!==0){
val.forEach(item=>{
letobj={};
obj.id=item.path;
obj.label=item.name;
if(item.children.length>=1){
obj.children=this.digui(item.children);
}
arr.push(obj);
});