Merge pull request '修复了提交' (#64) from xbx into master

Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/64
This commit is contained in:
luyuan 2020-08-18 15:56:34 +08:00
commit e07c2288dc
2 changed files with 5 additions and 2 deletions

View File

@ -117,7 +117,8 @@ export default {
uni.setStorageSync('userinfo', res.data);
uni.setStorageSync('rongyun', res.data.rongcloud_token);
this.$u.route({
url: '/pages/user/myinfo'
url: '/pages/user/myinfo',
type:"redirect"
});
}
});

View File

@ -54,8 +54,10 @@ export default {
info:{},
}
},
onLoad() {
onShow(){
this.getmyinfo()
},
onLoad() {
const user = uni.getStorageSync('userinfo');
console.log(user)
this.imService.login(user.userId,user.member_nickname,user.member_avatar)