Procházet zdrojové kódy

feature_20260425_完美门店陈列奖励案图片上传方式修改

zhujindu před 16 hodinami
rodič
revize
d97505162a
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      src/views/deviceWithin/taskPhotoTaking.vue

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

@@ -337,7 +337,9 @@ export default {
         this.toastLoading().clear();
         this.toastLoading().clear();
         if (res.code == 200) {
         if (res.code == 200) {
           localStorage.setItem('getRequestFlage', 'true');
           localStorage.setItem('getRequestFlage', 'true');
-          this.formData.fileInfoList = [];
+          if (this.formData && this.formData[0]) {
+            this.formData[0].fileInfoList = [];
+          }
           this.$router.go(-1);
           this.$router.go(-1);
         } else {
         } else {
           this.$toast('提交失败,请重试');
           this.$toast('提交失败,请重试');