报错:

写vue项目时报错message: Navigating to current location (”/home/home") is not allowed,路由组件页面将不会刷新出来,呈现一片空白。
报错message: Navigating to current location(/home/home) is not allowed.解决方案

原因:

路由路径发生改变, 路由选中丢失。

解决方案:includes()

用ES6中includes()方法指向对应的路由路径。
报错message: Navigating to current location(/home/home) is not allowed.解决方案

相关文章:

  • 2022-02-06
  • 2022-12-23
  • 2021-08-02
  • 2021-08-13
  • 2022-12-23
  • 2022-12-23
  • 2021-04-24
猜你喜欢
  • 2021-10-22
  • 2022-12-23
  • 2021-11-05
  • 2022-12-23
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案