解决冲突 frontend/src/api/index.ts
This commit is contained in:
@@ -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' }
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user