Browse Source

修改聊天头像默认

306132416@qq.com 6 years ago
parent
commit
76f4e1a943
1 changed files with 1 additions and 2 deletions
  1. 1 2
      pages/index/index.vue

+ 1 - 2
pages/index/index.vue

@@ -141,10 +141,9 @@
 						 getApp().globalData.user_id = res.data.msg.id;
 						 getApp().globalData.open_id = res.data.msg.openid;
 						 getApp().globalData.isAuth = res.data.msg.isauth === '0';
-						 getApp().globalData.user_name = res.data.msg.name;
-						 getApp().globalData.user_headUrl = res.data.msg.headimg  || '../../static/userDefault.png';
 						 getApp().globalData.times = res.data.msg.times;
 						 getApp().globalData.total_times = res.data.msg.total_times;
+						 that.userHeadUrl = res.data.msg.headimg || '../../static/userDefault.png';
 						 that.getHistory();	
 					} 
 				});