学院导出接口联调

This commit is contained in:
zhangsir
2024-07-30 09:29:59 +08:00
parent 6a0e29c4c8
commit ec95836cf5
2 changed files with 14 additions and 3 deletions

View File

@@ -5,7 +5,16 @@ const mimeMap = {
xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
zip: 'application/zip'
}
export function downLoadZipOne(str, filename) {
axios({
method: 'get',
url: str,
responseType: 'blob',
headers: { 'Authorization': 'Bearer ' + getCookieForName("token") }
}).then(res => {
resolveBlob(res, mimeMap.zip,filename)
})
}
const baseUrl = process.env.VUE_APP_ACT_API
export function downLoadZip(str, filename) {
var url = baseUrl + str