vue路由嵌套

clipboard.png
这样写不对嘛?<router-view></router-view>父级也有,为啥就是不出来,

clipboard.png
这样也不行
访问http://localhost:8080/credit/cardDetail 页面空白,是没有找到对应的子组件嘛?求指教
clipboard.png

阅读 1.5k
1 个回答
 {
    path: "/test",
    name: "test",
    label: "测试",
    redirect: "/test1",
    component: LayOut,
    children: [
      {
        path: "/test1",
        name: "test1",
        label: "仪表盘",
        component: () => import("@/views/dashboard/test.vue")
      }
    ]
  },
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏