YaolongHan 4 yıl önce
ebeveyn
işleme
b0b7f1a2b0
1 değiştirilmiş dosya ile 7 ekleme ve 2 silme
  1. 7 2
      persagy-web-graph/src/items/SImageItem.ts

+ 7 - 2
persagy-web-graph/src/items/SImageItem.ts

@@ -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