fix: whitelist mode

This commit is contained in:
tim
2025-07-15 12:36:27 +08:00
parent 5b886420c5
commit b25a25f5bc
6 changed files with 30 additions and 9 deletions

View File

@@ -88,6 +88,8 @@ export default {
loginWithGoogle() {
googleSignIn(() => {
this.$router.push('/')
}, () => {
this.$router.push('/signup-reason?google=1')
})
}
}

View File

@@ -204,6 +204,8 @@ export default {
} else {
googleSignIn(() => {
this.$router.push('/')
}, () => {
this.$router.push('/signup-reason')
})
}
}

View File

@@ -54,7 +54,10 @@ export default {
toast.error('Google 登录失败')
return
}
await googleAuthWithToken(token, this.reason, () => { this.$router.push('/') })
await googleAuthWithToken(token, this.reason,
() => { this.$router.push('/') },
() => { this.error = 'Google 登录失败' }
)
this.isWaitingForRegister = false
sessionStorage.removeItem('google_id_token')
return
@@ -138,5 +141,4 @@ export default {
.signup-page-button-primary.disabled:hover {
cursor: not-allowed;
}
</style>