tangning 2 年之前
父节点
当前提交
608f31e179
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/utils/http/axios/index.ts

+ 1 - 0
src/utils/http/axios/index.ts

@@ -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