mirror of
https://github.com/Spythere/station-manager-2.0.git
synced 2026-05-03 05:28:13 +00:00
cleanup
This commit is contained in:
@@ -51,8 +51,6 @@ export default defineComponent({
|
||||
|
||||
data
|
||||
.then((res) => {
|
||||
console.log(res.data);
|
||||
|
||||
this.store.user = res.data.user;
|
||||
this.store.authState = AuthState.AUTHORIZED;
|
||||
this.$router.push('/');
|
||||
|
||||
@@ -61,7 +61,7 @@ h1 {
|
||||
|
||||
.card_actions {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ export default defineComponent({
|
||||
|
||||
if (!e.response || e.response.status === undefined) {
|
||||
this.store.alertMessage = 'Wystąpił błąd podczas łączenia z serwerem!';
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
|
||||
const response = e.response;
|
||||
@@ -89,11 +89,13 @@ export default defineComponent({
|
||||
|
||||
if (status == 401) {
|
||||
this.store.alertMessage = 'Nieprawidłowe dane!';
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
|
||||
this.store.alertMessage = 'Wystąpił błąd podczas łączenia z serwerem!';
|
||||
}
|
||||
|
||||
return true;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user