tx-sider 2.2.3 → 2.2.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 +15 -13
- package/lib/TXUI.umd.js +3 -3
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/TXUI.mjs
CHANGED
|
@@ -34554,10 +34554,10 @@ var axiosExports = axios$3.exports;
|
|
|
34554
34554
|
var axios = axiosExports;
|
|
34555
34555
|
const axios$1 = /* @__PURE__ */ getDefaultExportFromCjs(axios);
|
|
34556
34556
|
const routes = [
|
|
34557
|
-
{
|
|
34558
|
-
|
|
34559
|
-
|
|
34560
|
-
}
|
|
34557
|
+
// {
|
|
34558
|
+
// path: "/",
|
|
34559
|
+
// component: TSider,
|
|
34560
|
+
// },
|
|
34561
34561
|
];
|
|
34562
34562
|
const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
34563
34563
|
__proto__: null,
|
|
@@ -41397,16 +41397,18 @@ function useCcflowCall() {
|
|
|
41397
41397
|
ccflowData.newVersionList = res;
|
|
41398
41398
|
});
|
|
41399
41399
|
connection.value.onreconnected(async (id) => {
|
|
41400
|
+
var _a, _b;
|
|
41400
41401
|
await connection.value.invoke("Start");
|
|
41401
41402
|
await connection.value.invoke("MenuNums");
|
|
41402
|
-
await connection.value.invoke("NewVersion", "
|
|
41403
|
+
await connection.value.invoke("NewVersion", (_a = JSON.parse(localStorage.getItem("selectModule"))) == null ? void 0 : _a.location, (_b = JSON.parse(localStorage.getItem("userInfos"))) == null ? void 0 : _b.userId);
|
|
41403
41404
|
});
|
|
41404
41405
|
if (connection.value.state !== HubConnectionState.Connected) {
|
|
41405
41406
|
connection.value.start().then(async () => {
|
|
41407
|
+
var _a, _b;
|
|
41406
41408
|
console.log("启动即时通信成功");
|
|
41407
41409
|
await connection.value.invoke("Start");
|
|
41408
41410
|
await connection.value.invoke("MenuNums");
|
|
41409
|
-
await connection.value.invoke("NewVersion", "
|
|
41411
|
+
await connection.value.invoke("NewVersion", (_a = JSON.parse(localStorage.getItem("selectModule"))) == null ? void 0 : _a.location, (_b = JSON.parse(localStorage.getItem("userInfos"))) == null ? void 0 : _b.userId);
|
|
41410
41412
|
});
|
|
41411
41413
|
}
|
|
41412
41414
|
};
|
|
@@ -41700,7 +41702,7 @@ const _sfc_main = {
|
|
|
41700
41702
|
}
|
|
41701
41703
|
const changeModule = async (i2) => {
|
|
41702
41704
|
var _a2, _b;
|
|
41703
|
-
let { permissionModuleName,
|
|
41705
|
+
let { permissionModuleName, routerurl, location: location2, moduleName } = i2;
|
|
41704
41706
|
if (!getModeuleInfoDataHandle) {
|
|
41705
41707
|
getModeuleInfoDataHandle = await getModeuleInfoData();
|
|
41706
41708
|
}
|
|
@@ -41709,7 +41711,7 @@ const _sfc_main = {
|
|
|
41709
41711
|
"selectModule",
|
|
41710
41712
|
JSON.stringify({
|
|
41711
41713
|
key: permissionModuleName,
|
|
41712
|
-
routerUrl,
|
|
41714
|
+
routerUrl: routerurl,
|
|
41713
41715
|
title: moduleName,
|
|
41714
41716
|
location: location2
|
|
41715
41717
|
})
|
|
@@ -41718,17 +41720,17 @@ const _sfc_main = {
|
|
|
41718
41720
|
ctx.emit("changeSystemOrModule", moduleName, name);
|
|
41719
41721
|
if (!location2) {
|
|
41720
41722
|
data5.moduleVisible = false;
|
|
41721
|
-
ctx.emit("routerReplace",
|
|
41723
|
+
ctx.emit("routerReplace", routerurl);
|
|
41722
41724
|
return;
|
|
41723
41725
|
}
|
|
41724
41726
|
const hostname2 = window.location.hostname.split(".");
|
|
41725
41727
|
const protocol2 = window.location.protocol;
|
|
41726
41728
|
const md = localStorage.getItem("loginForm");
|
|
41727
41729
|
if (process.env.NODE_ENV == "development") {
|
|
41728
|
-
goUrl.value = `${protocol2}//${location2}.nacho.cn/auth?md=${md}&key=${permissionModuleName}&routerUrl=${
|
|
41730
|
+
goUrl.value = `${protocol2}//${location2}.nacho.cn/auth?md=${md}&key=${permissionModuleName}&routerUrl=${routerurl}&title=${moduleName}&queryLocation=${location2}`;
|
|
41729
41731
|
console.log(goUrl.value, "development++++++++++++++++++++");
|
|
41730
41732
|
} else {
|
|
41731
|
-
goUrl.value = `${protocol2}//${location2}.${hostname2[1]}.${hostname2[2]}/auth?md=${md}&key=${permissionModuleName}&routerUrl=${
|
|
41733
|
+
goUrl.value = `${protocol2}//${location2}.${hostname2[1]}.${hostname2[2]}/auth?md=${md}&key=${permissionModuleName}&routerUrl=${routerurl}&title=${moduleName}&queryLocation=${location2}`;
|
|
41732
41734
|
console.log(goUrl.value, "prodect++++++++++++++++++");
|
|
41733
41735
|
}
|
|
41734
41736
|
if (location2 == "3000" || location2 == "30001" || ModeuleInfo.isSetOfBooks) {
|
|
@@ -42304,7 +42306,7 @@ const _sfc_main = {
|
|
|
42304
42306
|
};
|
|
42305
42307
|
}
|
|
42306
42308
|
};
|
|
42307
|
-
const _withScopeId = (n2) => (pushScopeId("data-v-
|
|
42309
|
+
const _withScopeId = (n2) => (pushScopeId("data-v-7eda0b19"), n2 = n2(), popScopeId(), n2);
|
|
42308
42310
|
const _hoisted_1 = {
|
|
42309
42311
|
class: "bg-white defaultTS funcTC relative",
|
|
42310
42312
|
style: { "padding-bottom": "10px", "margin-bottom": "10px" }
|
|
@@ -43396,7 +43398,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43396
43398
|
}, 8, ["show"])
|
|
43397
43399
|
], 64);
|
|
43398
43400
|
}
|
|
43399
|
-
const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
43401
|
+
const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-7eda0b19"]]);
|
|
43400
43402
|
const components = [TSider];
|
|
43401
43403
|
installComponents();
|
|
43402
43404
|
function installComponents() {
|