mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-29 18:51:53 +08:00
vue3: 代码生成器添加download方法
This commit is contained in:
parent
b085f35dfe
commit
b2c3ef12a6
@ -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 })
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user