update 重写系统部分业务导出

This commit is contained in:
疯狂的狮子li
2021-08-04 11:46:55 +08:00
parent 80067d32fc
commit 0539c2f927
33 changed files with 698 additions and 629 deletions

View File

@ -4,7 +4,6 @@ import { getToken } from '@/utils/auth'
const mimeMap = {
xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
zip: 'application/zip',
excel: 'application/vnd.ms-excel',
oss: 'application/octet-stream'
}
@ -62,7 +61,7 @@ export function downLoadExcel(url, params) {
responseType: 'blob',
headers: { 'Authorization': 'Bearer ' + getToken() }
}).then(res => {
resolveBlob(res, mimeMap.excel)
resolveBlob(res, mimeMap.xlsx)
})
}