|
|
@@ -96,14 +96,11 @@ const transform: AxiosTransform = {
|
|
|
requestInterceptors: (config, options) => {
|
|
|
// 请求之前处理config
|
|
|
const token = getJwtToken();
|
|
|
- if (token && (config as Recordable)?.requestOptions?.withToken !== false && config.url != "/agent/callProvider") {
|
|
|
+ if (token && (config as Recordable)?.requestOptions?.withToken !== false) {
|
|
|
// jwt token
|
|
|
// config.headers['X-Authorization'] = options.authenticationScheme ? `${options.authenticationScheme} ${token}` : token;
|
|
|
config.headers['Authorization'] = options.authenticationScheme ? `${options.authenticationScheme} ${token}` : token;
|
|
|
}
|
|
|
- if (config.url == "/api/callProvider") {
|
|
|
- // config.headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8'
|
|
|
- }
|
|
|
return config;
|
|
|
},
|
|
|
|