Merge commit 'c3408a4802b34ef1b1784f87caa8fca982235453'

This commit is contained in:
CPPAlien 2018-10-22 11:29:54 +08:00
commit 7716a43284

View File

@ -134,7 +134,9 @@ Component({
view.sHeight = res.height;
},
fail: (error) => {
console.error(`getImageInfo failed, ${JSON.stringify(error)}`);
// 如果图片坏了,则直接置空,防止坑爹的 canvas 画崩溃了
view.url = "";
console.error(`getImageInfo ${view.url} failed, ${JSON.stringify(error)}`);
},
complete: () => {
completeCount++;