fix router push in google util

This commit is contained in:
Tim
2025-07-25 16:20:10 +08:00
parent 8c738b6f87
commit 7a6136ab99

View File

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