Merge pull request '修复了提交' (#64) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/64
This commit is contained in:
commit
e07c2288dc
@ -117,7 +117,8 @@ export default {
|
|||||||
uni.setStorageSync('userinfo', res.data);
|
uni.setStorageSync('userinfo', res.data);
|
||||||
uni.setStorageSync('rongyun', res.data.rongcloud_token);
|
uni.setStorageSync('rongyun', res.data.rongcloud_token);
|
||||||
this.$u.route({
|
this.$u.route({
|
||||||
url: '/pages/user/myinfo'
|
url: '/pages/user/myinfo',
|
||||||
|
type:"redirect"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -54,8 +54,10 @@ export default {
|
|||||||
info:{},
|
info:{},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onShow(){
|
||||||
this.getmyinfo()
|
this.getmyinfo()
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
const user = uni.getStorageSync('userinfo');
|
const user = uni.getStorageSync('userinfo');
|
||||||
console.log(user)
|
console.log(user)
|
||||||
this.imService.login(user.userId,user.member_nickname,user.member_avatar)
|
this.imService.login(user.userId,user.member_nickname,user.member_avatar)
|
||||||
|
Loading…
Reference in New Issue
Block a user