admin管理员组文章数量:1612097
vue项目中,重复点击路由会出现如下报错
解决办法:
在router的配置文件中(router -> index.js)加上:
const originalPush = Router.prototype.push
Router.prototype.push = function push (location) {
return originalPush.call(this, location).catch(err => err)
}
即可解决
参考:
https://blog.csdn/xiecheng1995/article/details/106497172/?utm_medium=distribute.pc_relevant.none-task-blog-baidujs-1
本文标签: 报错promiseErrorAvoidedUncaught
版权声明:本文标题:【报错】Uncaught (in promise) Error: Avoided redundant navigation to current location: 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dongtai/1728629325a1166902.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论