Dynamic routing was ok before, but suddenly not today, I don’t know why. Note the solution briefly here

// Iterate over the route string from the background and convert it to a component objectfunction filterAsyncRouter(asyncRouterMap) {
  return asyncRouterMap.filter(route => {
    if(route.component.ponent) {// Layout component special handlingif (route.component === 'Layout') {
        route.component = Layout
      } else {
        route.component = loadView(route.component)
      }
    }
    if(route.children ! = null && route.children && route.children.length) { route.children = filterAsyncRouter(route.children) }return true})}exportConst loadView = (view) =>return () => import(`@/views/${view}'// Don't know why notreturn resolve => require([`@/views/${view}'], resolve)// resolveCopy the code