|
|
@@ -62,8 +62,10 @@ export default class Setting extends cc.Component {
|
|
|
console.log("=== gData.wechatData.avatar", gData.wechatData.avatar);
|
|
|
if (gData.wechatData.avatar != '') {
|
|
|
let result = await mk.loader.loadRemote(gData.wechatData.avatar + "?aaa=aa.jpg", null);
|
|
|
- this.img_head.spriteFrame = new cc.SpriteFrame(result);
|
|
|
- console.log("=== loadHead:", result);
|
|
|
+ if (result) {
|
|
|
+ this.img_head.spriteFrame = new cc.SpriteFrame(result);
|
|
|
+ console.log("=== loadHead:", result);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|