const fmRouter = {
path: path,
component(resolve) {
if (component === "/layout/Layout") {
Layout
} else if (component === "/logs/exceptionlog") {
_import("logs/exceptionlog/index")
}
},
name: name,
meta: meta,
children: children
}
fmRoutes.push(fmRouter)
}
deals with the data sent from the backend in this way, and the routing name,path,title can be displayed correctly. When clicked, the components of component are not displayed on the page and do not report any errors, and cannot find the way to the end ~