!1 Update width and height for Image onload

Merge pull request !1 from Sunfei/upload
This commit is contained in:
openharmony_ci
2021-06-29 14:53:16 +00:00
committed by Gitee
+3 -1
View File
@@ -51,8 +51,10 @@ export class Image {
width: this._width,
height: this._height,
success: data => {
this._width = data.width;
this._height = data.height;
if (this.onload && typeof this.onload === 'function') {
this.onload(data);
this.onload();
}
},
fail: data => {