Vue-router报错 Avoided redundant navigation to current... 解决问题

在vue项目中路由跳转过程当中浏览器会报Avoided redundant navigation to current location 这个错误, 解决方法:在路由文件里添加这一句可解决报错问题vue const originalPush = VueRouter.prototype.push VueRouter.prototype.push = function push(location)
相关文章
相关标签/搜索