vue路由点击第二次时报错

 解决:

const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}
原文地址:https://www.cnblogs.com/wuqilang/p/12761966.html