feat: vue3 axios add download function

This commit is contained in:
xingyu
2022-07-25 21:03:14 +08:00
parent 611e11ae23
commit b085f35dfe
26 changed files with 48 additions and 37 deletions

View File

@ -14,9 +14,8 @@ export const getJobLogApi = (id: number) => {
// 导出定时任务日志
export const exportJobLogApi = (params) => {
return request.get({
return request.download({
url: '/infra/job-log/export-excel',
params,
responseType: 'blob'
params
})
}