mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
fix: axios upgrade (#288)
This commit is contained in:
@@ -30,13 +30,13 @@ export default function useApiRequest() {
|
|||||||
const locale = currentLocale;
|
const locale = currentLocale;
|
||||||
|
|
||||||
if (token) {
|
if (token) {
|
||||||
request.headers.common['X-Access-Token'] = token;
|
request.headers['X-Access-Token'] = token;
|
||||||
}
|
}
|
||||||
if (organizationId) {
|
if (organizationId) {
|
||||||
request.headers.common['organization-id'] = organizationId;
|
request.headers['organization-id'] = organizationId;
|
||||||
}
|
}
|
||||||
if (locale) {
|
if (locale) {
|
||||||
request.headers.common['Accept-Language'] = locale;
|
request.headers['Accept-Language'] = locale;
|
||||||
}
|
}
|
||||||
return request;
|
return request;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user