//在main.js页面
import vueRouter from ‘vue-router ’
const routerPush = VueRouter.prototype.push;
VueRouter.prototype.push = function(location){
return routerPush.call(this,location).catch(err=>err)
}
路由导航故障处理
最新推荐文章于 2024-07-31 14:35:30 发布