vue路由配置
404
{
path:'/:path(.*)',
component:NotFound
}
参数及正则
{
path:'/news/:id',
component:News
},
{
path:'/news/:id(\\d+)',
component:News
},
{
path:'/news/:id+',
component:News
},
{
path:'/news/:id*',
component:News
},
{
path:'/news/:id?',
component:News
},