let names = [];
let newLists = this.menuData("你的路由list",names);
menuData(data,names){
data.forEach((router=> {
if (router.children && router.children.length) {
names.push(router.name);
this.menuData(router.children, names);
}
}));
return names;
},
网友评论