matrix_components 2.0.323 → 2.0.325
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, _c2, _d, _e, _f, _g, _h2, _i, _j, _k, _l2;
|
|
76533
76534
|
try {
|
|
76534
76535
|
const requestId = `${Date.now()}_${parseInt(Math.random() * 9999999 + "")}`;
|
|
76535
76536
|
config.requestId = requestId;
|
|
@@ -76544,10 +76545,15 @@ function createAxiosInstance(customConfig = {}, errorCallback) {
|
|
|
76544
76545
|
} catch (error) {
|
|
76545
76546
|
console.error("请求的ID生成失败:", error);
|
|
76546
76547
|
}
|
|
76547
|
-
|
|
76548
|
-
|
|
76549
|
-
|
|
76550
|
-
|
|
76548
|
+
let tokenName = "satoken";
|
|
76549
|
+
let tokenValue = "";
|
|
76550
|
+
console.log(`xxxx===>`, ((_a3 = window.__APP_CONFIG__) == null ? void 0 : _a3.tonkenKey) || ((_b = window.__APP_CONFIG__) == null ? void 0 : _b.TonkenKey), ((_c2 = window.__APP_CONFIG__) == null ? void 0 : _c2.tonkenValue) || ((_d = window.__APP_CONFIG__) == null ? void 0 : _d.TonkenValue));
|
|
76551
|
+
if (((_e = window.__APP_CONFIG__) == null ? void 0 : _e.tonkenKey) || ((_f = window.__APP_CONFIG__) == null ? void 0 : _f.TonkenKey)) {
|
|
76552
|
+
tokenName = ((_g = window.__APP_CONFIG__) == null ? void 0 : _g.tonkenKey) || ((_h2 = window.__APP_CONFIG__) == null ? void 0 : _h2.TonkenKey);
|
|
76553
|
+
}
|
|
76554
|
+
if (((_i = window.__APP_CONFIG__) == null ? void 0 : _i.tonkenValue) || ((_j = window.__APP_CONFIG__) == null ? void 0 : _j.TonkenValue)) {
|
|
76555
|
+
tokenValue = ((_k = window.__APP_CONFIG__) == null ? void 0 : _k.tonkenValue) || ((_l2 = window.__APP_CONFIG__) == null ? void 0 : _l2.TonkenValue);
|
|
76556
|
+
}
|
|
76551
76557
|
console.log(`token===>${tokenName}:${tokenValue}`);
|
|
76552
76558
|
if (tokenValue) {
|
|
76553
76559
|
config.headers[tokenName] = tokenValue;
|