vue 路由歪招

const routes = [
  {
    path: "/",
    component: BasicLayout,
    children: [
      {
        path: "",
        name: "analysis",
        component: Analysis
      },
      {
        path: "userform",
        name: "userform",
        component: h => h("<router-view />")  !!!!!特殊情况下用
      }
    ]
  },
原文地址:https://www.cnblogs.com/Jiaojiawang/p/12860370.html