const originPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (location) {
return originPush.call(this, location).catch(err => err)
}
放到router 的index下吗即可
const originPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (location) {
return originPush.call(this, location).catch(err => err)
}
放到router 的index下吗即可