tranningManager down loading add

This commit is contained in:
joshen
2024-05-24 23:39:11 +08:00
parent 2fb9f88200
commit 4d3a54c15f
2 changed files with 20 additions and 11 deletions

View File

@@ -19,7 +19,7 @@ export function downLoadZip(str, filename) {
})
}
const baseUrlManage = process.env.VUE_APP_BASE_API
export function downLoadZipManage(str, filename) {
export function downLoadZipManage(str, filename,fun) {
var url = baseUrlManage + str
axios({
method: 'get',
@@ -28,6 +28,7 @@ export function downLoadZipManage(str, filename) {
headers: { 'Authorization': 'Bearer ' + getCookieForName("token") }
}).then(res => {
resolveBlob(res, mimeMap.xlsx,filename)
if(fun) fun()
})
}
/**