diff --git a/pages/user/myinfo.vue b/pages/user/myinfo.vue index c3ab84d..b143f52 100644 --- a/pages/user/myinfo.vue +++ b/pages/user/myinfo.vue @@ -56,6 +56,10 @@ export default { }, onLoad() { this.getmyinfo() + const user = uni.getStorageSync('userinfo'); + console.log(user) + this.imService.login(user.userId,user.member_nickname,user.member_avatar) + this.imService.connectIM() }, methods: { // 获取个人信息