Commit b2c3ef12a694fa7ed3d328ac892cde6fff6b748f

Authored by xingyu
1 parent b085f35d

vue3: 代码生成器添加download方法

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,5 +31,5 @@ export const deletePostApi = async (id: number) => {
31 31
32 // 导出${table.classComment} Excel 32 // 导出${table.classComment} Excel
33 export const exportPostApi = async (params: ${simpleClassName}ExcelReqVO) => { 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 }