解决冲突 frontend/src/api/index.ts

This commit is contained in:
sjl
2024-11-14 11:36:25 +08:00
26 changed files with 1892 additions and 737 deletions

View File

@@ -108,15 +108,6 @@ class RequestHttp {
download(url: string, params?: object, _object = {}): Promise<BlobPart> {
return this.service.post(url, params, { ..._object, responseType: "blob" });
}
/**
* @description 批量导入专用请求方法
*/
batchImport<T>(url: string, formData: FormData, _object = {}): Promise<ResultData<T>> {
return this.service.post(url, formData, {
..._object,
headers: { 'Content-Type': 'multipart/form-data' }
});
}
}