微信小程序参数不存在处理

This commit is contained in:
devil_gong 2019-01-16 18:49:43 +08:00
parent e436400933
commit 19144dd012

View File

@ -70,7 +70,7 @@ Page({
} }
self.setData({ self.setData({
avatar: user.avatar || app.data.default_user_head_src, avatar: user.avatar || app.data.default_user_head_src,
nickname: user.nickname, nickname: user.nickname || '',
}); });
wx.stopPullDownRefresh(); wx.stopPullDownRefresh();
}, },