Vue dynamic routing component handles not displaying on the page?

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 ~

Mar.04,2021

router-view?


1 see if there is a router-view
2 css style tag with scope

Menu