NavigationDuplicated: Avoided redundant navigation to current location…
1.原因:element-ui多次点击导航(多次push同一个路由),会报错
2.解决:在router index,js 中加入代码:
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}