Commit b2c3ef12a694fa7ed3d328ac892cde6fff6b748f
1 parent
b085f35d
vue3: 代码生成器添加download方法
Showing
1 changed file
with
1 additions
and
1 deletions
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) => { |
| 31 | 31 | |
| 32 | 32 | // 导出${table.classComment} Excel |
| 33 | 33 | export const exportPostApi = async (params: ${simpleClassName}ExcelReqVO) => { |
| 34 | - return await request.get({ url: '${baseURL}/export-excel', params, responseType: 'blob' }) | |
| 34 | + return await request.download({ url: '${baseURL}/export-excel', params }) | |
| 35 | 35 | } | ... | ... |