matrix_components 2.0.339 → 2.0.341

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -76535,7 +76535,7 @@ function createAxiosInstance(customConfig = {}, errorCallback) {
76535
76535
  * @returns {AxiosRequestConfig} 返回处理后的请求配置对象
76536
76536
  */
76537
76537
  (config) => {
76538
- var _a3, _b, _c2, _d, _e, _f;
76538
+ var _a3, _b, _c2, _d, _e, _f, _g, _h2, _i, _j;
76539
76539
  try {
76540
76540
  const requestId = `${Date.now()}_${parseInt(Math.random() * 9999999 + "")}`;
76541
76541
  config.requestId = requestId;
@@ -76551,7 +76551,10 @@ function createAxiosInstance(customConfig = {}, errorCallback) {
76551
76551
  console.error("请求的ID生成失败:", error);
76552
76552
  }
76553
76553
  const tokenName = ((_b = (_a3 = app$1 == null ? void 0 : app$1.config) == null ? void 0 : _a3.globalProperties) == null ? void 0 : _b.$TokenName) || ((_d = (_c2 = app$1 == null ? void 0 : app$1.config) == null ? void 0 : _c2.globalProperties) == null ? void 0 : _d.$TonkenKey) || localStorage.getItem("TokenName") || localStorage.getItem("tokenName") || sessionStorage.getItem("TokenName") || sessionStorage.getItem("tokenName") || globalThis.TokenName || globalThis.tokenName || localStorage.getItem("TonkenKey") || localStorage.getItem("tonkenKey") || sessionStorage.getItem("TonkenKey") || sessionStorage.getItem("tonkenKey") || globalThis.TonkenKey || globalThis.tonkenKey || "satoken";
76554
- const tokenValue = ((_f = (_e = app$1 == null ? void 0 : app$1.config) == null ? void 0 : _e.globalProperties) == null ? void 0 : _f.$TonkenValue) || localStorage.getItem(tokenName) || sessionStorage.getItem(tokenName) || localStorage.getItem("TonkenValue") || sessionStorage.getItem("TonkenValue") || localStorage.getItem("tonkenValue") || sessionStorage.getItem("tonkenValue") || globalThis.TonkenValue || globalThis.tonkenValue || "";
76554
+ console.log(`1===>===>===>===>`, (_f = (_e = app$1 == null ? void 0 : app$1.config) == null ? void 0 : _e.globalProperties) == null ? void 0 : _f.$TonkenValue, tokenName, localStorage.getItem(tokenName), sessionStorage.getItem(tokenName), localStorage.getItem("TonkenValue"), sessionStorage.getItem("tonkenValue"), globalThis.TonkenValue, globalThis.tonkenValue);
76555
+ const tokenValue = ((_h2 = (_g = app$1 == null ? void 0 : app$1.config) == null ? void 0 : _g.globalProperties) == null ? void 0 : _h2.$TonkenValue) || localStorage.getItem(tokenName) || sessionStorage.getItem(tokenName) || localStorage.getItem("TonkenValue") || sessionStorage.getItem("TonkenValue") || localStorage.getItem("tonkenValue") || sessionStorage.getItem("tonkenValue") || globalThis.TonkenValue || globalThis.tonkenValue || "";
76556
+ console.log(`2===>===>===>===>`, (_j = (_i = app$1 == null ? void 0 : app$1.config) == null ? void 0 : _i.globalProperties) == null ? void 0 : _j.$TonkenValue, tokenName, tokenValue, localStorage.getItem(tokenName), sessionStorage.getItem(tokenName), localStorage.getItem("TonkenValue"), sessionStorage.getItem("TonkenValue"), localStorage.getItem("tonkenValue"), sessionStorage.getItem("tonkenValue"), globalThis.TonkenValue, globalThis.tonkenValue);
76557
+ console.log(`3===>===>===>===>`, sessionStorage);
76555
76558
  if (tokenValue) {
76556
76559
  config.headers[tokenName] = tokenValue;
76557
76560
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matrix_components",
3
- "version": "2.0.339",
3
+ "version": "2.0.341",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [