Authored by 陈峰

commit

... ... @@ -47,12 +47,16 @@ router.onReady(() => {
history.pushState({}, '', from.fullPath);
}
})
.catch(next);
.catch(e => {
console.error(e);
return next();
});
});
app.$mount('#app');
});
router.onError(e => {
console.error(e);
router.push({name: 'error.500'});
});
... ...