修改isTransformResponse

This commit is contained in:
陈红丽 2024-07-30 10:04:19 +08:00
parent 12b5fec18c
commit b1f769d4b3
3 changed files with 3 additions and 5 deletions

View File

@ -152,7 +152,8 @@ export function userExport() {
return http.request({
url: '/user/export',
method: 'GET',
responseType: 'blob'
},{
isTransformResponse: false,
});
}
/**

View File

@ -55,9 +55,6 @@ const transform: AxiosTransform = {
// return '[HTTP] Request has no return value';
throw new Error('请求出错,请稍候重试');
}
if(res.config.responseType=="blob"){
return res.data
}
// 这里 coderesultmessage为 后台统一的字段,需要修改为项目自己的接口返回格式
const { code, data, msg } = res.data;
// 请求成功

View File

@ -136,7 +136,7 @@ const selectionData = ref([])
},
],
select: (key) => {
if(key=='runOnce') {
if(key=='runOnce') {
handelRunOnce(record)
} else if(key=='jobLog'){
handleJobLog(record)