fix 修复 无法获取token问题 将 globalHeaders 改为函数

This commit is contained in:
疯狂的狮子Li
2023-08-09 12:59:18 +08:00
parent 53ac5fb43c
commit 50891e99ac
6 changed files with 11 additions and 9 deletions

View File

@ -16,7 +16,7 @@ export default {
method: 'get',
url: url,
responseType: 'blob',
headers: globalHeaders,
headers: globalHeaders(),
});
const isBlob = blobValidate(res.data);
if (isBlob) {
@ -40,7 +40,7 @@ export default {
method: 'get',
url: url,
responseType: 'blob',
headers: globalHeaders,
headers: globalHeaders(),
});
const isBlob = blobValidate(res.data);
if (isBlob) {