|
@@ -137,6 +137,7 @@ const transform: AxiosTransform = {
|
|
|
requestInterceptors: (config, options) => {
|
|
|
// 请求之前处理config
|
|
|
const token = getToken();
|
|
|
+ console.log('getToken',token)
|
|
|
if (token && (config as Recordable)?.requestOptions?.withToken !== false) {
|
|
|
// jwt token
|
|
|
(config as Recordable).headers.Authorization = options.authenticationScheme
|