vue3: 代码生成器添加download方法
parent
b085f35dfe
commit
b2c3ef12a6
|
@ -31,5 +31,5 @@ export const deletePostApi = async (id: number) => {
|
||||||
|
|
||||||
// 导出${table.classComment} Excel
|
// 导出${table.classComment} Excel
|
||||||
export const exportPostApi = async (params: ${simpleClassName}ExcelReqVO) => {
|
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 })
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue