Commit 68d4bc01 authored by leiqingsong's avatar leiqingsong

修改

parent 8251ded6
......@@ -28,7 +28,7 @@ export default {
// }
// localStorage.setItem('user', JSON.stringify(user));
console.log("和App开始交互");
// showBottomBar();
showBottomBar(false);
getAuthToken()
.then(res => {
console.log("获取token成功", res);
......
......@@ -72,9 +72,11 @@ export default {
};
getUserInfo2(params).then(res => {
if (res.code == 0) {
localStorage.setItem("user", JSON.stringify(res.data));
this.$nextTick(() => {
this.inviteeCode = res.data.inviteCode;
this.avatar = "http://8.131.244.76:81" + res.data.headImage;
localStorage.setItem("user", JSON.stringify(res.data));
})
}
});
},
......
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