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

This commit is contained in:
xingyu 2022-07-25 21:04:40 +08:00
parent b085f35dfe
commit b2c3ef12a6

View File

@ -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 })
} }