feat: fix 注册失败和登录失败

This commit is contained in:
tim
2025-08-10 11:50:21 +08:00
parent 1a8e216aa9
commit 1177a778ee
3 changed files with 15 additions and 20 deletions

View File

@@ -187,7 +187,6 @@ export default {
username: this.username
})
})
this.isWaitingForEmailVerified = false
const data = await res.json()
if (res.ok) {
if (this.registerMode === 'WHITELIST') {
@@ -201,6 +200,8 @@ export default {
}
} catch (e) {
toast.error('注册失败')
} finally {
this.isWaitingForEmailVerified = false
}
},
signupWithGithub() {