refactor: 优化

This commit is contained in:
wanchun 2022-04-11 19:29:06 +08:00
parent 3fa247d7fe
commit 6fe89219ac

View File

@ -10,6 +10,9 @@ const getMetaByName = (config, name) => {
}
if (item.children && item.children.length > 0) {
res = getMetaByName(item.children, name);
if (res.path) {
break;
}
}
}
}