as shown in the figure, variable, no
datas.forEach(item => {
let newRoute = {
path: item.path,
name: item.name,
meta: {
title: item.title,
hideInMenu: false
},
component: (resolve) => require(["@" + item.componentPath], resolve)
}
// newRoute.component = () => import(`@/${item.componentPath}`)
// console.info("path ", () => import(`@/${item.componentPath}`))
if (item.children.length > 0) {
newRoute.children = makeRouter(item.children, newRoute)
}
store.push(newRoute)
})
: