This commit is contained in:
tamaina
2021-08-31 20:31:09 +09:00
parent 7e30910ab8
commit de69cab239
5 changed files with 9 additions and 5 deletions

View File

@@ -178,14 +178,14 @@ export default defineComponent({
'hcaptcha-response': this.hCaptchaResponse,
'g-recaptcha-response': this.reCaptchaResponse,
}).then(() => {
os.api('signin', {
return os.api('signin', {
username: this.username,
password: this.password
}).then(res => {
this.$emit('signup', res);
if (this.autoSet) {
login(res.i);
return login(res.token);
}
});
}).catch(() => {