diff --git a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/api/api.ts.vm b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/api/api.ts.vm index 537339eba..b37365a07 100644 --- a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/api/api.ts.vm +++ b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/api/api.ts.vm @@ -31,5 +31,5 @@ export const deletePostApi = async (id: number) => { // 导出${table.classComment} Excel export const exportPostApi = async (params: ${simpleClassName}ExcelReqVO) => { - return await request.get({ url: '${baseURL}/export-excel', params, responseType: 'blob' }) + return await request.download({ url: '${baseURL}/export-excel', params }) }