assets/js/middleGround/api/file.js
@@ -36,10 +36,14 @@ }, //上传文件 upload(data) { console.log(data) return request({ url: "/file/api/ApiUpload", method: "post", data header: { 'content-type': data.contentType, }, data: data.buffer, }); }, @@ -71,13 +75,13 @@ }, // 批量下载get getDownloadFiles (params) { getDownloadFiles(params) { return request({ url: '/file/api/ApiGetDownloadFiles', method: 'GET', responseType: 'blob', headers:{ 'md5s':params headers: { 'md5s': params } }); }