mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-03-10 14:00:47 +08:00
Merge pull request #256 from nagisa77/codex/fix-router-push-not-recognized-in-loginwithgoogle
Fix loginWithGoogle router usage
This commit is contained in:
@@ -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)
|
||||||
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user