vue路由跳转同一个路由多次点击出现以下报错Navigating to current location ("/threeFloor") is not allowed
解决办法
在router/index.js页面添加
const VueRouterPush = Router.prototype.push
Router.prototype.push = function push (to) {
return VueRouterPush.call(this, to).catch(err => err)
}Navigating to current location ("/threeFloor") is not allowed

相关文章:

  • 2022-02-06
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
  • 2021-09-14
  • 2021-10-12
  • 2022-12-23
相关资源
相似解决方案