Better errors handling from vuejs side

This commit is contained in:
Bubka
2020-01-17 00:23:38 +01:00
parent 01862e11a3
commit a68a9b8f39
11 changed files with 42 additions and 30 deletions

View File

@ -165,7 +165,7 @@
this.ShowTwofaccountInModal = true;
}
catch (error) {
this.$router.push({ name: 'genericError', params: { err: error.response.data.message } });
//this.$router.push({ name: 'genericError', params: { err: error.response } });
}
},
@ -194,7 +194,7 @@
this.$router.go('/login');
}
catch (error) {
this.$router.push({ name: 'genericError', params: { err: error.response.data.message } });
this.$router.push({ name: 'genericError', params: { err: error.response } });
}
}
}