Vue 之 Avoided redundant navigation to current location:报错显示是路由重复解决
解决:router文件夹下面的index.js中加上下面几句代码,搞定
const originalPush = VueRouter.prototype.push; VueRouter.prototype.push = function push(location) { return originalPush.call(this, location).catch(err => err); };