Avoided redundant navigation to current location: “/login”.
看图
解决办法
将下边这代码,加入到router文件夹下的index.js文件里面
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}