Пофиксил зависания кнопок входа/регистрации

This commit is contained in:
Dhaverd 2024-11-16 03:14:38 +08:00
parent 6e0b29f2a2
commit 2c8fdce6aa
2 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,7 @@ export default {
let validation = this.validate();
if (validation !== true){
alert(validation);
this.loading = false;
return;
}
this.userStore.login(this.email, this.password, this.rememberMe).then((isLogged) => {

View File

@ -43,6 +43,7 @@ export default {
let validation = this.validate();
if (validation !== true){
alert(validation);
this.loading = false;
return;
}
this.userStore.registration(this.login, this.email, this.password, this.repeatPassword).then((isRegistred)=>{