接受blob export function exportTeacherActivitiesState(data: any): Promise<IResponse<Blob>> { return request({ baseURL, url: "/Api/CourseEvaluationManage/ActivityStatistics/ExportTeacherActivitiesState", method: "post", responseType: 'blob', data, }); } 发送file export function UploadFile(data: IFile): Promise<IResponse<IFileRes[]>> { return request({ url: "/Api/Common/UploadFile", method: "post", headers: { 'content-type': 'multipart/form-data' }, data }); }
标签:axios,headers,export,blob,文件类型,data,method From: https://www.cnblogs.com/guodadan/p/17486286.html