Vue组件多次点击报错Avoided redundant navigation to current location: “/profile“.
报错提示profile组件避免了到当前位置的冗余导航。
在VueRouter后添加
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
Vue组件多次点击报错Avoided redundant navigation to current location: “/profile“.
Vue组件多次点击报错Avoided redundant navigation to current location: “/profile“.
解决报错

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2023-01-30
猜你喜欢
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2021-04-24
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案