| | |
| | | } 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); |
| | | }); |
| | | }); |
| | | }, |