完善导入导出
This commit is contained in:
@@ -47,11 +47,14 @@ export function exportProduct(data: object) {
|
||||
}
|
||||
|
||||
//导入产品
|
||||
export function importProduct(data: object) {
|
||||
export function importProduct(data: FormData) {
|
||||
return newService({
|
||||
url: '/customerService/product/import',
|
||||
responseType: 'blob',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data', // 文件上传需要使用form-data
|
||||
},
|
||||
timeout: 60000, // 文件上传可能较慢
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user