iczer/vue-antd-admin

请问如何在二级页面下新建一个三级页面

sountstars opened this issue · 3 comments

{
path: "/",
name: "1111",
component: TabsView,
redirect: "/list/query",
children: [
{
path: "list",
name: "222222",
meta: {
icon: "table",
},
component: PageView,
children: [
{
path: "query",
name: "222-1111",
component: () => import("@/pages/list/questionnaire"),
children: [
{
path: "create",
name: "3333333",
meta: {
invisible: true,
},
//redirect: "create",
component: () => import("@/pages/list/questionnaire/create"),
},
],
},
],
},

   create页面
   <template>
新建11111111111

what questions do you have?

iczer commented

在二级路由下添加 children 子路由即可。注意,你的所有父级页面都应该包含,不然子页面是无法显示的;