修复了提交

This commit is contained in:
luyuan 2020-08-18 15:56:10 +08:00
parent 79990e56d2
commit 2f4e938a2b
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
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)