|
@@ -68,6 +68,9 @@ export async function download(url) {
|
|
|
baseURL: getConfig().baseURL,
|
|
baseURL: getConfig().baseURL,
|
|
|
noNeedInterceptor: true,
|
|
noNeedInterceptor: true,
|
|
|
responseType: "blob",
|
|
responseType: "blob",
|
|
|
|
|
+ headers: {
|
|
|
|
|
+ Authorization: localStorage.getItem("token"),
|
|
|
|
|
+ },
|
|
|
};
|
|
};
|
|
|
const res = await axios.get(url, newConfig);
|
|
const res = await axios.get(url, newConfig);
|
|
|
return res;
|
|
return res;
|