|
|
@@ -210,6 +210,7 @@ const transform: AxiosTransform = {
|
|
|
const token = userStore.getToken;
|
|
|
const tenantId = userStore.getTenantId;
|
|
|
const targetTenantId = getValue();
|
|
|
+
|
|
|
if (token && (config as Recordable)?.requestOptions?.withToken !== false) {
|
|
|
// jwt token
|
|
|
(config as Recordable).headers.satoken = options.authenticationScheme
|
|
|
@@ -220,7 +221,7 @@ const transform: AxiosTransform = {
|
|
|
if (tenantId) {
|
|
|
(config as Recordable).headers.tenantId = tenantId;
|
|
|
}
|
|
|
- if (targetTenantId) {
|
|
|
+ if (!(config as Recordable)?.requestOptions?.ignoreTargetTenantId && targetTenantId) {
|
|
|
(config as Recordable).headers.targetTenantId = targetTenantId;
|
|
|
}
|
|
|
|