mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-14 11:05:06 +08:00
vue3: 代码生成器添加download方法
This commit is contained in:
@ -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 })
|
||||
}
|
||||
|
Reference in New Issue
Block a user