fix 修复 oss上传与zip下载未传输clientid问题
This commit is contained in:
parent
acbdfc4639
commit
0082354aba
@ -16,7 +16,10 @@ export default {
|
|||||||
method: 'get',
|
method: 'get',
|
||||||
url: url,
|
url: url,
|
||||||
responseType: 'blob',
|
responseType: 'blob',
|
||||||
headers: { Authorization: 'Bearer ' + getToken() }
|
headers: {
|
||||||
|
Authorization: 'Bearer ' + getToken(),
|
||||||
|
clientid: import.meta.env.VITE_APP_CLIENT_ID
|
||||||
|
}
|
||||||
});
|
});
|
||||||
const isBlob = blobValidate(res.data);
|
const isBlob = blobValidate(res.data);
|
||||||
if (isBlob) {
|
if (isBlob) {
|
||||||
@ -42,7 +45,8 @@ export default {
|
|||||||
responseType: 'blob',
|
responseType: 'blob',
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: 'Bearer ' + getToken(),
|
Authorization: 'Bearer ' + getToken(),
|
||||||
datasource: localStorage.getItem('dataName')
|
datasource: localStorage.getItem('dataName'),
|
||||||
|
clientid: import.meta.env.VITE_APP_CLIENT_ID
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const isBlob = blobValidate(res.data);
|
const isBlob = blobValidate(res.data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user