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('rongyun', res.data.rongcloud_token);
 | 
			
		||||
						this.$u.route({
 | 
			
		||||
							url: '/pages/user/myinfo'
 | 
			
		||||
							url: '/pages/user/myinfo',
 | 
			
		||||
							type:"redirect"
 | 
			
		||||
						});
 | 
			
		||||
					}
 | 
			
		||||
				});
 | 
			
		||||
 | 
			
		||||
@ -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)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user