Commit e4269050 by zhanghaozhe

Merge branch 'login-binding' into dev

parents 3c9c4c55 974357c0
...@@ -148,6 +148,7 @@ const formikConfig = { ...@@ -148,6 +148,7 @@ const formikConfig = {
}) })
} else { } else {
const uid = getParam('uid') const uid = getParam('uid')
console.log(Boolean(uid))
const params = { const params = {
phone_num: values.tel, phone_num: values.tel,
phone_code: values.veriCode, phone_code: values.veriCode,
...@@ -175,14 +176,12 @@ const formikConfig = { ...@@ -175,14 +176,12 @@ const formikConfig = {
} }
}) })
} else { } else {
if (uid) { const redirect = localStorage.getItem('binding_redirect')
const redirect = localStorage.getItem('binding_redirect') if (redirect) {
if (redirect) { localStorage.removeItem('binding_redirect')
localStorage.removeItem('binding_redirect') history.replace(JSON.parse(redirect))
history.replace(JSON.parse(redirect)) } else {
} else { location.assign(data.data['jump_url'])
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