tx-sider 2.0.3 → 2.0.5
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.
- package/lib/TXUI.mjs +7 -9
- package/lib/TXUI.umd.js +2 -2
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/TXUI.mjs
CHANGED
|
@@ -24314,9 +24314,8 @@ var lib = {
|
|
|
24314
24314
|
const qs = /* @__PURE__ */ getDefaultExportFromCjs(lib);
|
|
24315
24315
|
const hostname = window.location.hostname.split(".");
|
|
24316
24316
|
const protocol = window.location.protocol;
|
|
24317
|
-
const isLocalhost = () => hostname[0] === "localhost";
|
|
24318
24317
|
const request2 = new Request({
|
|
24319
|
-
baseURL:
|
|
24318
|
+
baseURL: process.env.NODE_ENV == "development" ? "/api" : "/",
|
|
24320
24319
|
timeout: TIME_OUT,
|
|
24321
24320
|
headers: {
|
|
24322
24321
|
"Content-Type": "application/json;charset=UTF-8",
|
|
@@ -24328,16 +24327,16 @@ const request2 = new Request({
|
|
|
24328
24327
|
requestInterceptors: (config2) => {
|
|
24329
24328
|
config2.headers.authorization = localStorage.getItem("token") ? "Bearer " + localStorage.getItem("token") : null;
|
|
24330
24329
|
if (config2.requestBase == "USER_BASE_URL") {
|
|
24331
|
-
config2.baseURL =
|
|
24330
|
+
config2.baseURL = process.env.NODE_ENV == "development" ? "/user" : `${protocol}//basis.${hostname[1]}.${hostname[2]}`;
|
|
24332
24331
|
}
|
|
24333
24332
|
if (config2.requestBase == "MRP2_BASE_URL") {
|
|
24334
|
-
config2.baseURL =
|
|
24333
|
+
config2.baseURL = process.env.NODE_ENV == "development" ? "/mrp2" : `${protocol}//mrp2.${hostname[1]}.${hostname[2]}`;
|
|
24335
24334
|
}
|
|
24336
24335
|
if (config2.requestBase == "ROOT_BASE_URL") {
|
|
24337
|
-
config2.baseURL =
|
|
24336
|
+
config2.baseURL = process.env.NODE_ENV == "development" ? "/root" : `${protocol}//basis.${hostname[1]}.${hostname[2]}`;
|
|
24338
24337
|
}
|
|
24339
24338
|
if (config2.requestBase == "GATEWAY_URL") {
|
|
24340
|
-
config2.baseURL =
|
|
24339
|
+
config2.baseURL = process.env.NODE_ENV == "development" ? "/gateway" : `${protocol}//gateway.${hostname[1]}.${hostname[2]}`;
|
|
24341
24340
|
}
|
|
24342
24341
|
return config2;
|
|
24343
24342
|
},
|
|
@@ -27782,7 +27781,6 @@ const _sfc_main = {
|
|
|
27782
27781
|
onMounted(async () => {
|
|
27783
27782
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
27784
27783
|
selectedSystems.value = isSystems.value;
|
|
27785
|
-
await getPermissionModuleListData();
|
|
27786
27784
|
if (permissionModuleList.value.length == 1) {
|
|
27787
27785
|
sysShow.value = false;
|
|
27788
27786
|
}
|
|
@@ -28348,7 +28346,7 @@ const _sfc_main = {
|
|
|
28348
28346
|
};
|
|
28349
28347
|
}
|
|
28350
28348
|
};
|
|
28351
|
-
const _withScopeId = (n2) => (pushScopeId("data-v-
|
|
28349
|
+
const _withScopeId = (n2) => (pushScopeId("data-v-08fe511b"), n2 = n2(), popScopeId(), n2);
|
|
28352
28350
|
const _hoisted_1 = {
|
|
28353
28351
|
class: "bg-white defaultTS funcTC relative",
|
|
28354
28352
|
style: { "padding-bottom": "10px", "margin-bottom": "10px" }
|
|
@@ -29297,7 +29295,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29297
29295
|
}, 8, ["show"])
|
|
29298
29296
|
], 64);
|
|
29299
29297
|
}
|
|
29300
|
-
const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
29298
|
+
const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-08fe511b"]]);
|
|
29301
29299
|
const components = [TSider];
|
|
29302
29300
|
installComponents();
|
|
29303
29301
|
function installComponents() {
|