Browse Source

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

zhujindu 16 hours ago
parent
commit
29e06c765b
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/views/deviceWithin/taskPhotoTaking.vue

+ 3 - 2
src/views/deviceWithin/taskPhotoTaking.vue

@@ -294,7 +294,7 @@ export default {
         this.taskPhotoRecognitionResult = item.taskPhotoRecognitionResult;
       });
     },
-    async onSubmit() {
+    onSubmit() {
       this.toastLoading(0, '提交中,请稍候...', true);
       const taskPhoto = this.$refs.taskPhoto && this.$refs.taskPhoto[0];
       let formData = {
@@ -317,14 +317,15 @@ export default {
       };
       if (this.userInfo.photoMethod == '1') {
         formData.mediaInfos = [];
+        this.addCollection(formData);
       } else {
         this.mediaInfos = [];
         this.syncUpload(taskPhoto.imgArr, () => {
           this.toastLoading().clear();
           formData.mediaInfos = this.mediaInfos;
+          this.addCollection(formData);
         });
       }
-      await this.addCollection(formData);
     },
     syncUpload(imgArr, callback) {
       if (!imgArr.length) {