matrix_components 2.0.327 → 2.0.328
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.
|
@@ -76546,15 +76546,11 @@ function createAxiosInstance(customConfig = {}, errorCallback) {
|
|
|
76546
76546
|
console.error("请求的ID生成失败:", error);
|
|
76547
76547
|
}
|
|
76548
76548
|
const tokenName = ((_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 || "satoken";
|
|
76549
|
-
const tokenValue = ((_d = (_c2 = app$1 == null ? void 0 : app$1.config) == null ? void 0 : _c2.globalProperties) == null ? void 0 : _d.TonkenValue) || localStorage.getItem(
|
|
76550
|
-
setInterval(() => {
|
|
76551
|
-
var _a4;
|
|
76552
|
-
console.warn(`-----yyy---->`, sessionStorage, localStorage, (_a4 = app$1 == null ? void 0 : app$1.config) == null ? void 0 : _a4.globalProperties);
|
|
76553
|
-
}, 5e3);
|
|
76549
|
+
const tokenValue = ((_d = (_c2 = app$1 == null ? void 0 : app$1.config) == null ? void 0 : _c2.globalProperties) == null ? void 0 : _d.TonkenValue) || localStorage.getItem(tokenName) || sessionStorage.getItem(tokenName) || localStorage.getItem("TonkenValue") || sessionStorage.getItem("TonkenValue") || localStorage.getItem("tonkenValue") || sessionStorage.getItem("tonkenValue") || globalThis.TonkenValue || globalThis.tonkenValue || "";
|
|
76554
76550
|
if (tokenValue) {
|
|
76555
76551
|
config.headers[tokenName] = tokenValue;
|
|
76556
76552
|
}
|
|
76557
|
-
console.log(`token===>`,
|
|
76553
|
+
console.log(`token===>`, tokenName, tokenValue);
|
|
76558
76554
|
return config;
|
|
76559
76555
|
},
|
|
76560
76556
|
/**
|