Avoided redundant navigation to current location: “/login”.
看图
![在这里插入图片描述](https://img-blog.csdnimg.cn/3a127c4906124ae8b32f05332a4db710.png)
解决办法
将下边这代码,加入到router文件夹下的index.js文件里面
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}