diff --git a/runtime/main/page/Image.ts b/runtime/main/page/Image.ts index 5efe28b4..e88348e5 100644 --- a/runtime/main/page/Image.ts +++ b/runtime/main/page/Image.ts @@ -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 => {