// 解決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)
}