NavigationDuplicated {_name: ‘NavigationDuplicated’, name: ‘NavigationDuplicated’}报错
解决方法:在router文件下面的Index.js中加上下面代码。
const routerPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return routerPush.call(this, location).catch(error => error)
}