解决多次跳转同一路由出现bug

const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (location) {
  return originalPush.call(this, location).catch(err => err)
}
posted @ 2020-09-04 16:24  Monday1997  阅读(341)  评论(0)    收藏  举报