style: 同步请求文件自动格式化
All checks were successful
Build and Deploy TenantUI / build-and-deploy (push) Successful in 53s
All checks were successful
Build and Deploy TenantUI / build-and-deploy (push) Successful in 53s
This commit is contained in:
@@ -127,11 +127,14 @@ function createRequestClient(baseURL: string, options?: RequestClientOptions) {
|
|||||||
headers[TENANT_ID_HEADER_KEY] = tenantId;
|
headers[TENANT_ID_HEADER_KEY] = tenantId;
|
||||||
}
|
}
|
||||||
|
|
||||||
const resp = await refreshTokenApi({
|
const resp = await refreshTokenApi(
|
||||||
refreshToken: currentRefreshToken,
|
{
|
||||||
}, {
|
refreshToken: currentRefreshToken,
|
||||||
headers,
|
},
|
||||||
});
|
{
|
||||||
|
headers,
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
const responseBody = (resp as any)?.data ?? resp;
|
const responseBody = (resp as any)?.data ?? resp;
|
||||||
const tokenData =
|
const tokenData =
|
||||||
@@ -165,8 +168,14 @@ function createRequestClient(baseURL: string, options?: RequestClientOptions) {
|
|||||||
}
|
}
|
||||||
setHeaderValue(config.headers, 'Accept-Language', preferences.app.locale);
|
setHeaderValue(config.headers, 'Accept-Language', preferences.app.locale);
|
||||||
|
|
||||||
const headerTenantId = getHeaderValue(config.headers, TENANT_ID_HEADER_KEY);
|
const headerTenantId = getHeaderValue(
|
||||||
const headerTenantCode = getHeaderValue(config.headers, TENANT_CODE_HEADER_KEY);
|
config.headers,
|
||||||
|
TENANT_ID_HEADER_KEY,
|
||||||
|
);
|
||||||
|
const headerTenantCode = getHeaderValue(
|
||||||
|
config.headers,
|
||||||
|
TENANT_CODE_HEADER_KEY,
|
||||||
|
);
|
||||||
if (!headerTenantId && !headerTenantCode) {
|
if (!headerTenantId && !headerTenantCode) {
|
||||||
const { tenantCode, tenantId } = resolveTenantHeaderPayload();
|
const { tenantCode, tenantId } = resolveTenantHeaderPayload();
|
||||||
if (tenantCode) {
|
if (tenantCode) {
|
||||||
|
|||||||
Reference in New Issue
Block a user