feat: vue3 axios add download function

This commit is contained in:
xingyu
2022-07-25 21:03:14 +08:00
parent 611e11ae23
commit b085f35dfe
26 changed files with 48 additions and 37 deletions

View File

@ -35,5 +35,8 @@ export const sendSmsApi = (data) => {
// 导出短信模板
export const exportPostApi = (params) => {
return request.get({ url: '/system/sms-template/export-excel', params, responseType: 'blob' })
return request.download({
url: '/system/sms-template/export-excel',
params
})
}