Commit fa1b0f0b by zhanghaozhe

userAction

parent 22330281
......@@ -25,7 +25,8 @@ class App extends Component {
cookie.set('plat', '5')
http.get(`${api.home}/m/user_info`).then(res => {
this.props.setCurrentUser(this.storeUser({...res, data: {}}))
console.log(res);
this.props.setCurrentUser(this.storeUser(res))
})
}
......@@ -57,7 +58,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