public CommonResultgetUploadedFilesList(HttpServletRequest request) {
Map fileMap = request.getFileMap();
-----------前端----------
// export const getUploadedFilesListApi2 = (url, params) => {
// return axios({
// method: METHOD.POST,
// url: '想休息',
// data: params,
// headers: {
// 'Content-Type': 'multipart/form-data'
// }
// });
// }
let formData = new window.FormData()
debugger
for (let i = 0; i < this.fileList.length; i++) { // 每个file append到formdata里
formData.append('file', this.fileList[i])
}
debugger
this.getUploadedFilesList(formData);
// let url = Vue.prototype.API_URL + '/imageCompare'
// axios({
// method: 'post',
// url: url,
// data: formData,
// headers: {'Content-Type': 'multipart/form-data'}
// }).then(function (res) {
// })