mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 04:16:47 +08:00
导出详细学习记录 - loading 更改
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user