跳转注册
This commit is contained in:
parent
ffc628e9d1
commit
4091d215b4
@ -913,7 +913,8 @@ export async function register(data: any){
|
|||||||
mtongue: data.muyu,
|
mtongue: data.muyu,
|
||||||
tlanguage: data.jiaoshou,
|
tlanguage: data.jiaoshou,
|
||||||
language: getValue("Lanvuage") || 'zh',
|
language: getValue("Lanvuage") || 'zh',
|
||||||
zoneid: days.tz.guess()
|
zoneid: days.tz.guess(),
|
||||||
|
memberid: sessionStorage.getItem('mid')
|
||||||
|
|
||||||
})
|
})
|
||||||
if(res.code == 0){
|
if(res.code == 0){
|
||||||
|
@ -271,7 +271,12 @@ export default defineComponent({
|
|||||||
window.FB.login(function(response: any){
|
window.FB.login(function(response: any){
|
||||||
console.log(response, 121212)
|
console.log(response, 121212)
|
||||||
// handle the response
|
// 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")
|
||||||
|
}
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user