摘要: 首先要路由的最后插入404组件//前面已定以404组件,这里作转发 let router404 = { path:'*', redirect:'/404', hidden:true }在路由守卫处添加该代码if(to.matched.length !== 0 ){ next() //如果匹配到跳转下一页... 阅读全文
posted @ 2020-04-07 19:02 悟空等待唐僧的日子 阅读(668) 评论(0) 推荐(0) 编辑