Browse Source

打印令牌类型

lifanagju_citu 6 months ago
parent
commit
afe980f541
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/config/axios/service.js

+ 1 - 0
src/config/axios/service.js

@@ -65,6 +65,7 @@ service.interceptors.request.use(
     let isToken = (config.headers || {}).isToken === false
     // token类型
     const tokenIndex = config.tokenIndex ? config.tokenIndex : getIsEnterprise() ? 1 : 2
+    console.log('令牌类型', tokenIndex === 1 ? '企业:' : '个人:', getToken(tokenIndex))
     whiteList.some((v) => {
       if (config.url) {
         config.url.indexOf(v) > -1