石广澎
2024-06-04 14a52315c4bdcd7d04208f41696ffd3771dd8183
common/http.interceptor.js
@@ -43,9 +43,7 @@
      // 引用token
      const TOKEN = uni.getStorageSync(ACCESSTOKEN);
      if (TOKEN) {
         x.header[ACCESSTOKEN] = TOKEN;
      } else {
         delete x.header[ACCESSTOKEN]
         x.header[ACCESSTOKEN] = 'Bearer ' + TOKEN;
      }
      x.header['CLIENT-TYPE'] = appType()
      return x;