2 回答
TA贡献1835条经验 获得超7个赞
{
path: '/teachingResearch/lecture',
component: TeachingResearch,
children: [
{
path: '/teachingResearch/lecture',
component: Lecture
},
{
path: '/teachingResearch/paper',
component: Paper
},
{
path: '/teachingResearch/question',
component: Question
}
]
}
这应该是可行的。
修改答案,补充。
{
path: '/teachingResearch',
redirect: '/teachingResearch/lecture'
},
{
path: '/teachingResearch/lecture',
component: TeachingResearch,
children: [
{
path: '/teachingResearch/lecture',
component: Lecture
},
{
path: '/teachingResearch/paper',
component: Paper
},
{
path: '/teachingResearch/question',
component: Question
}
]
}
添加回答
举报