猿问

vue-router2.0 怎么设置404页面 ?

如题

routes: [
    { name: 'a', path: '/', component: a },
    { name: 'b', path: '/b/', component: b }
  ]


胡说叔叔
浏览 1544回答 1
1回答

慕村9548890

const router = new VueRouter({    mode: 'history',     routes: [         { path: '*', component: NotFoundComponent }     ] })
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答