跳转注册

This commit is contained in:
2020-11-30 14:21:42 +08:00
parent ffc628e9d1
commit 4091d215b4
2 changed files with 8 additions and 2 deletions

View File

@@ -271,7 +271,12 @@ export default defineComponent({
window.FB.login(function(response: any){
console.log(response, 121212)
// handle the response
authLogin(response.authResponse.userID, index)
authLogin(response.authResponse.userID, index).then((res: any)=>{
if(res.redirect == 1){
sessionStorage.setItem('mid',res.memberid);
router.push("/sign")
}
})
});
}