Commit f7acf14c by zhanghaozhe

登录注册bug

parent 101470dd
......@@ -79,7 +79,7 @@ class App extends Component {
if (cookie.get('uid') && this.props.user.hasError) {
this.getUser()
}
if (location.pathname === '/passport') {
if (location.pathname.startsWith('/passport')) {
window.localStorage.setItem('binding_redirect', stringify(this.previousLocation))
}
const {pathname, state} = location
......@@ -188,7 +188,6 @@ class App extends Component {
let data = res.data
if (data.errno == 200) {
if (data.data['is_bind_mobile']) {
console.log(data.data.url)
window.location.assign(data.data.url)
} else {
let user = this.transformWxUser(res)
......
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