平常都是2级路由,也没啥问题,但新增一个3级路由发现页面打不开了
{
//调查问卷
path:'/questionnaire',
component:view,
children:[
{
//我的问卷
path:'/',
component: () => import("@/pages/questionnaire/index"),
},
{
//创建
path:'add',
component: () => import("@/pages/questionnaire/add"),
},
{
//预览
path:'preview',
component: () => import("@/pages/questionnaire/preview"),
},
{
//已回答人数
path:'people',
component: () => import("@/pages/questionnaire/people"),
},
{
//选择模板
path:'/template',
component:view,
chidlren:[
{
//选择模板
path:'/',
component: () => import("@/pages/questionnaire/template"),
},
{
//创建模板
path:'create',
component: () => import("@/pages/questionnaire/created"),
}
]
}
]
}
然后打开路径页面是空白的
改一下