Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
navigations.forEach(root => {
root.children && mapTree(root.children, (item:any) => {
if (item.path && item.component) {
routes.push(
)
} else if (item.path && item.getComponent) {
routes.push(