Commit f1f712a6 by 姜雷

修改登录更新信息方式

parent c2cf03ae
...@@ -73,7 +73,10 @@ class Login extends Component { ...@@ -73,7 +73,10 @@ class Login extends Component {
.then(res => { .then(res => {
const data = res.data; const data = res.data;
console.log(data); console.log(data);
this.props.updateUserInfo(data); this.props.updateUserInfo({
...data,
token: data.wxToken,
});
Taro.navigateTo({ Taro.navigateTo({
url: '/pages/Home/Home', url: '/pages/Home/Home',
}); });
......
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