- 博客(1)
- 收藏
- 关注
转载 VUE项目路由报错 error: Avoided redundant navigation to current location:
问题: 在VUE中路由遇到Error: Avoided redundant navigation to current location:报错显示是路由重复 解决办法: 虽然对项目无影响,但是看到有红的还是不舒服。 于是查了一下发现可以这样解决: router文件夹下面的index.js中加上下面几句代码 const originalPush = Router.prototype.push Router.prototype.push = function push(location) {
2020-06-17 00:08:32
2692
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅