fix router push in google util

This commit is contained in:
Tim
2025-07-25 16:20:10 +08:00
parent 8c738b6f87
commit 7a6136ab99
+10 -5
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)
}
)
} }