@@ -38,8 +38,9 @@ export class SImageItem extends SObjectItem {
this.isLoadOver = true;
this.update();
};
- this.img.onerror = (e) => {
+ this.img.onerror = (e): void => {
this.isLoadOver = false;
+ this.update();
console.log("加载图片错误!");
console.log(e);
}