如题routes: [
{ name: 'a', path: '/', component: a },
{ name: 'b', path: '/b/', component: b }
]
1 回答

慕村9548890
TA贡献1884条经验 获得超4个赞
const router = new VueRouter({ mode: 'history', routes: [ { path: '*', component: NotFoundComponent } ] })
添加回答
举报
0/150
提交
取消