VueRouter push报错处理
const originalPush = Router.prototype.push
// eslint-disable-next-line
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch((err) => err)
}
const originalReplace = Router.prototype.replace
Router.prototype.replace = function push(location) {
return originalReplace.call(this, location).catch((err) => err)
}