Sfoglia il codice sorgente

feature_20260330_拜访连拍速度优化

zhujindu 1 settimana fa
parent
commit
286e107e8d
1 ha cambiato i file con 16 aggiunte e 13 eliminazioni
  1. 16 13
      src/components/deleteUploadImgTaskPhoto.vue

+ 16 - 13
src/components/deleteUploadImgTaskPhoto.vue

@@ -117,6 +117,9 @@ export default {
         if (this.userInfo.photoMethod == '1') {
           this.imgArr = val || [];
         } else {
+          if (this.formData.mediaInfos) {
+            this.downloadImage(this.formData.mediaInfos);
+          }
         }
       },
       deep: true,
@@ -125,19 +128,19 @@ export default {
   },
   activated() {
     // 授权
-    getTicketFun(['downloadImage']).then(() => {
-      this.imgArr = [];
-      // <!-- 0=企业微信,1=H5相机 -->
-      if (this.formData) {
-        if (this.userInfo.photoMethod == '1') {
-          this.imgArr = this.formData.collectionItemList[0].fileInfoList || [];
-        } else {
-          if (this.formData.mediaInfos) {
-            this.downloadImage(this.formData.mediaInfos);
-          }
-        }
-      }
-    });
+    // getTicketFun(['downloadImage']).then(() => {
+    //   this.imgArr = [];
+    //   // <!-- 0=企业微信,1=H5相机 -->
+    //   if (this.formData) {
+    //     if (this.userInfo.photoMethod == '1') {
+    //       this.imgArr = this.formData.collectionItemList[0].fileInfoList || [];
+    //     } else {
+    //       if (this.formData.mediaInfos) {
+    //         this.downloadImage(this.formData.mediaInfos);
+    //       }
+    //     }
+    //   }
+    // });
   },
   data() {
     return {