Commit e4269050 by zhanghaozhe

Merge branch 'login-binding' into dev

parents 3c9c4c55 974357c0
......@@ -148,6 +148,7 @@ const formikConfig = {
})
} else {
const uid = getParam('uid')
console.log(Boolean(uid))
const params = {
phone_num: values.tel,
phone_code: values.veriCode,
......@@ -175,14 +176,12 @@ const formikConfig = {
}
})
} else {
if (uid) {
const redirect = localStorage.getItem('binding_redirect')
if (redirect) {
localStorage.removeItem('binding_redirect')
history.replace(JSON.parse(redirect))
} else {
location.assign(data.data['jump_url'])
}
const redirect = localStorage.getItem('binding_redirect')
if (redirect) {
localStorage.removeItem('binding_redirect')
history.replace(JSON.parse(redirect))
} else {
location.assign(data.data['jump_url'])
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment