摘要: { path: '*', name: 'error', component: Error, meta: { title: '404' }, } 区别于上面旧版的匹配规则,新版vue-router4需要使用自定义的路径参数正则表达式,在路径参数后面的括号中加入正则表达式; const routes = 阅读全文
posted @ 2022-01-27 11:43 隔壁的小明 阅读(2963) 评论(0) 推荐(0)