Commit f2679d5d by zhanghaozhe

Merge branch 'passport'

parents c831ef54 116e188f
......@@ -25,7 +25,7 @@ class App extends Component {
cookie.set('plat', '5')
http.get(`${api.home}/m/user_info`).then(res => {
this.props.setCurrentUser(this.storeUser({...res, data: {}}))
this.props.setCurrentUser(this.storeUser(res))
})
}
......@@ -57,7 +57,8 @@ class App extends Component {
payload = {
hasError: true,
msg: res.data.msg,
code: res.data.code
code: res.data.code,
data: {}
}
}
return payload
......
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