소스 검색

Merge branch 'feature_20260425_完美门店陈列奖励案图片上传方式修改' into master-20260422

zhujindu 16 시간 전
부모
커밋
87ab493e94
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/views/deviceWithin/taskPhotoTaking.vue

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

@@ -164,6 +164,9 @@ export default {
     };
   },
   activated() {
+    if (this.formData && this.formData.collectionItemList && this.formData.collectionItemList[0]) {
+      this.formData.collectionItemList[0].fileInfoList = [];
+    }
     this.taskIds = this.$route.query.taskIds || [];
     this.visitsId = this.$route.query.visitsId || '';
     this.storeGroupId = this.$route.query.storeGroupId || '';
@@ -337,9 +340,6 @@ export default {
         this.toastLoading().clear();
         if (res.code == 200) {
           localStorage.setItem('getRequestFlage', 'true');
-          if (this.formData && this.formData[0]) {
-            this.formData[0].fileInfoList = [];
-          }
           this.$router.go(-1);
         } else {
           this.$toast('提交失败,请重试');