// 解决Vue-Router升级导致的Uncaught(in promise) navigation guard问题
把以下代码复制到router文件夹到index.js文件即可
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (location, onResolve, onReject) {
if (onResolve || onReject) return originalPush.call(this, location, onResolve, onReject)
return originalPush.call(this, location).catch(err => err)
}