NavigationDuplicated: Avoided redundant navigation to current
location: “/mine“解决方案
在router文件的index.js中添加以下代码即可:
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}