vue路由点击第二次时报错

 

 解决:

const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}

 

相关文章:

  • 2021-11-01
  • 2021-11-23
  • 2021-06-21
  • 1970-01-01
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2021-09-08
猜你喜欢
  • 2021-09-17
  • 2022-12-23
  • 2021-08-21
  • 2022-12-23
  • 2023-04-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案