Sfoglia il codice sorgente

Merge branch 'feature_20260330_拜访连拍速度优化' into uat(dev)

zhujindu 2 settimane fa
parent
commit
180a85a05f

+ 1 - 6
src/components/deleteUploadImgTaskPhoto.vue

@@ -96,8 +96,7 @@ export default {
   watch: {
     imgs: {
       handler(val) {
-        console.log(val);
-        this.imgArr = val;
+        this.imgArr = val || [];
       },
       deep: true,
       immediate: true,
@@ -120,10 +119,6 @@ export default {
       });
     },
     newimgarr(localIds) {
-      // 防御性处理,确保 this.imgArr 一定为数组
-      if (!Array.isArray(this.imgArr)) {
-        this.imgArr = [];
-      }
       if (this.isIOS()) {
         this.imgArr = this.imgArr.concat([...localIds]);
         // 解决ios微信localId无法直接使用的问题,获取base64后再上传

+ 6 - 6
src/views/deviceWithin/taskPhotoTaking.vue

@@ -242,12 +242,12 @@ export default {
         equipmentCode: '',
       };
       console.log(this.$refs.deleteUploadImgTaskPhoto.imgArr);
-      addCollectionAnswerBatch(formData).then((res) => {
-        if (res.code == 200) {
-          localStorage.setItem('getRequestFlage', 'true');
-          this.$router.go(-1);
-        }
-      });
+      // addCollectionAnswerBatch(formData).then((res) => {
+      //   if (res.code == 200) {
+      //     localStorage.setItem('getRequestFlage', 'true');
+      //     this.$router.go(-1);
+      //   }
+      // });
     },
     onClickLeft() {
       this.$router.go(-1);