|
@@ -109,12 +109,17 @@ export class SImageItem extends SObjectItem {
|
|
|
this.img.onload = (e): void => {
|
|
|
// @ts-ignore
|
|
|
const imgSrc = e.path[0].src;
|
|
|
- if (this.isUrlIdentical(imgSrc)) {
|
|
|
+ /**
|
|
|
+ * 需要解决两个问题,此方法仅用
|
|
|
+ * 1 需要把 imgSrc 做转意;
|
|
|
+ * 2 添加兼容 Ios 方法(e.path[0].src在 ios无此属性)
|
|
|
+ */
|
|
|
+ // if (this.isUrlIdentical(imgSrc)) {
|
|
|
this.isLoadOver = true;
|
|
|
this.computeImgSize();
|
|
|
this.$emit("imgLoadOver");
|
|
|
this.update();
|
|
|
- }
|
|
|
+ // }
|
|
|
};
|
|
|
this.img.onerror = (e): void => {
|
|
|
// @ts-ignore
|