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