Handle an unhandled erro

parent a8f856a6
......@@ -44,6 +44,9 @@ const app = new Vue({
});
window.axios.interceptors.response.use(null, function(error) {
if (error.response === undefined) {
console.log(error);
}
if (error.response.status === 403) {
app.$notify.error({
title: app.$t('core.unauthorized'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment