Merge pull request #256 from nagisa77/codex/fix-router-push-not-recognized-in-loginwithgoogle

Fix loginWithGoogle router usage
This commit is contained in:
Tim
2025-07-25 16:20:22 +08:00
committed by GitHub

View File

@@ -51,10 +51,15 @@ export async function googleSignIn(redirect_success, redirect_not_approved) {
} }
} }
import router from '../router'
export function loginWithGoogle() { export function loginWithGoogle() {
googleSignIn(() => { googleSignIn(
this.$router.push('/') () => {
}, (token) => { router.push('/')
this.$router.push('/signup-reason?token=' + token) },
}) token => {
router.push('/signup-reason?token=' + token)
}
)
} }