Commit b013c7bf by 施宇

11

parent d781a33a
Showing with 1 additions and 1 deletions
......@@ -44,7 +44,7 @@ $(function () {
"token": Util.getCookie('token') || '',
}, function (res) {
if (res.errcode == 0) {
self.img = res.data.avatar||res.data.wechat_oauth.oauth_head;
self.img = res.data.avatar||(res.data.wechat_oauth?(res.data.wechat_oauth.oauth_head||''):'');
console.log(self.img)
self.name = res.data.company_name || '--';
self.id = res.data.user_id + '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment