Browse Source

chore: fix auth

main
刘凯 1 year ago
parent
commit
306fe8ae98
  1. 6
      src/utils/http/axios/index.ts

6
src/utils/http/axios/index.ts

@ -200,7 +200,7 @@ const transform: AxiosTransform = {
// jwt token
(config as Recordable).headers['DEFrame-Auth'] = options.authenticationScheme
? `${options.authenticationScheme} ${token}`
: `bearer ${token}`
: `${token}`
}
// 设置租户
const tenantId = getTenantId()
@ -275,9 +275,7 @@ function createAxios(opt?: Partial<CreateAxiosOptions>) {
deepMerge(
{
// See https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication#authentication_schemes
// authentication schemes,e.g: Bearer
// authenticationScheme: 'Bearer',
authenticationScheme: 'Bearer',
authenticationScheme: 'bearer',
timeout: 10 * 1000,
// 基础接口地址
// baseURL: globSetting.apiUrl,

Loading…
Cancel
Save