15179599649
2024-01-11 87457da383e777a68454b64d409c708821373da3
'提交内容'
1 files modified
20 ■■■■ changed files
src/views/Addmessage/index.vue 20 ●●●● patch | view | raw | blame | history
src/views/Addmessage/index.vue
@@ -57,20 +57,20 @@
      } else {
        temporary = event;
      }
      temporary.map((item, index) => {
        this.FileList[index].status = "uploading";
        this.FileList[index].message = "加载中";
      });
      // temporary.map((item, index) => {
      //   this.FileList[index].status = "uploading";
      //   this.FileList[index].message = "加载中";
      // });
      temporary.forEach((element, index) => {
        const formdata = new FormData();
        formdata.append("file", element.file);
        endpoint(formdata).then(res => {
          alert(JSON.stringify(res))
          if (res.data.code == 200) {
            this.FileList[index].status = "";
            this.FileList[index].message = "";
            this.submitlist.push(res.data.data.link);
          }
          // alert(JSON.stringify(res));
          // if (res.data.code == 200) {
          // this.FileList[index].status = "";
          // this.FileList[index].message = "";
          // }
          this.submitlist.push(res.data.data.link);
        });
      });
    },