matrix_components 2.0.323 → 2.0.326

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.
@@ -76530,6 +76530,7 @@ function createAxiosInstance(customConfig = {}, errorCallback) {
76530
76530
  * @returns {AxiosRequestConfig} 返回处理后的请求配置对象
76531
76531
  */
76532
76532
  (config) => {
76533
+ var _a3, _b;
76533
76534
  try {
76534
76535
  const requestId = `${Date.now()}_${parseInt(Math.random() * 9999999 + "")}`;
76535
76536
  config.requestId = requestId;
@@ -76544,10 +76545,13 @@ function createAxiosInstance(customConfig = {}, errorCallback) {
76544
76545
  } catch (error) {
76545
76546
  console.error("请求的ID生成失败:", error);
76546
76547
  }
76547
- const tonkenKey = (app$1 == null ? void 0 : app$1.config.globalProperties.TonkenKey) || localStorage.getItem("TonkenKey") || localStorage.getItem("tonkenKey") || sessionStorage.getItem("TonkenKey") || sessionStorage.getItem("tonkenKey") || globalThis.TonkenKey || globalThis.tonkenKey || "";
76548
- console.log(`tonkenKey===>`, app$1 == null ? void 0 : app$1.config.globalProperties.TonkenKey, localStorage.getItem("TonkenKey"), localStorage.getItem("tonkenKey"), sessionStorage.getItem("TonkenKey"), sessionStorage.getItem("tonkenKey"), globalThis.TonkenKey, globalThis.tonkenKey);
76548
+ const tonkenKey = ((_b = (_a3 = app$1 == null ? void 0 : app$1.config) == null ? void 0 : _a3.globalProperties) == null ? void 0 : _b.TonkenKey) || localStorage.getItem("TonkenKey") || localStorage.getItem("tonkenKey") || sessionStorage.getItem("TonkenKey") || sessionStorage.getItem("tonkenKey") || globalThis.TonkenKey || globalThis.tonkenKey || "";
76549
76549
  const tokenName = localStorage.getItem(tonkenKey) || sessionStorage.getItem(tonkenKey) || "satoken";
76550
76550
  const tokenValue = localStorage.getItem(tokenName) || sessionStorage.getItem(tokenName) || "";
76551
+ setInterval(() => {
76552
+ var _a4;
76553
+ console.warn(`-----xxx---->`, sessionStorage, localStorage, (_a4 = app$1 == null ? void 0 : app$1.config) == null ? void 0 : _a4.globalProperties);
76554
+ }, 5e3);
76551
76555
  console.log(`token===>${tokenName}:${tokenValue}`);
76552
76556
  if (tokenValue) {
76553
76557
  config.headers[tokenName] = tokenValue;