fix: bugs

This commit is contained in:
qier222 2021-01-31 00:52:02 +08:00
parent 6a64e73a2c
commit d6be72f5ce
9 changed files with 27 additions and 29 deletions

View file

@ -160,7 +160,7 @@ export default {
.then(this.handleLoginResponse)
.catch((error) => {
this.processing = false;
alert(error);
alert(`发生错误,请检查你的账号密码是否正确\n${error}`);
});
} else {
this.processing = this.validateEmail();
@ -173,7 +173,7 @@ export default {
.then(this.handleLoginResponse)
.catch((error) => {
this.processing = false;
alert(error);
alert(`发生错误,请检查你的账号密码是否正确\n${error}`);
});
}
},
@ -188,7 +188,8 @@ export default {
this.$router.push({ path: "/library" });
} else {
this.processing = false;
alert(data.msg ?? data.message);
console.log(data.msg);
alert(data.msg ?? data.message ?? "账号或密码错误,请检查");
}
},
},