导出详细学习记录 - loading 更改

This commit is contained in:
gengxin
2025-03-03 18:07:15 +08:00
parent 75ca7c72a6
commit c4245231c5
2 changed files with 12 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
import axios from 'axios'
import {ref} from 'vue'
import {getCookieForName} from "@/api/method";
const mimeMap = {
@@ -13,6 +14,10 @@ export function downLoadXlsx(str, filename) {
headers: { 'Authorization': 'Bearer ' + getCookieForName("token") }
}).then(res => {
resolveBlob(res, mimeMap.xlsx,filename)
return false;
}).catch(error =>{
console.log("downLoadXlsx error",error);
return false;
})
}
const baseUrl = process.env.VUE_APP_ACT_API