tx-sider 2.3.17 → 2.3.19

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 CHANGED
@@ -22282,10 +22282,10 @@ var axiosExports = axios$3.exports;
22282
22282
  var axios = axiosExports;
22283
22283
  const axios$1 = /* @__PURE__ */ getDefaultExportFromCjs(axios);
22284
22284
  const routes = [
22285
- // {
22286
- // path: "/",
22287
- // component: TSider,
22288
- // },
22285
+ {
22286
+ path: "/",
22287
+ component: TSider
22288
+ }
22289
22289
  ];
22290
22290
  const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22291
22291
  __proto__: null,
@@ -54462,6 +54462,7 @@ function useCcflowCall() {
54462
54462
  });
54463
54463
  connection.value.on("GetPersonUnReadCount", (res) => {
54464
54464
  console.log("GetPersonUnReadCount", "获取数据:", res);
54465
+ ccflowData.messageList = "";
54465
54466
  ccflowData.messageList = res;
54466
54467
  });
54467
54468
  connection.value.onreconnected(async (id2) => {
@@ -54476,7 +54477,7 @@ function useCcflowCall() {
54476
54477
  });
54477
54478
  if (connection.value.state !== HubConnectionState.Connected) {
54478
54479
  connection.value.start().then(async () => {
54479
- var _a2, _b2, _c2;
54480
+ var _a2, _b2;
54480
54481
  console.log("启动即时通信成功");
54481
54482
  await connection.value.invoke("Start");
54482
54483
  await connection.value.invoke("MenuNums");
@@ -54485,10 +54486,6 @@ function useCcflowCall() {
54485
54486
  (_a2 = JSON.parse(localStorage.getItem("selectModule"))) == null ? void 0 : _a2.location,
54486
54487
  (_b2 = JSON.parse(localStorage.getItem("userInfos"))) == null ? void 0 : _b2.userId
54487
54488
  );
54488
- await connection.value.invoke(
54489
- "PersonUnReadCount",
54490
- (_c2 = JSON.parse(localStorage.getItem("userInfos"))) == null ? void 0 : _c2.userId
54491
- );
54492
54489
  });
54493
54490
  }
54494
54491
  };
@@ -55267,10 +55264,15 @@ const _sfc_main = {
55267
55264
  watch(
55268
55265
  () => ccflowData.messageList,
55269
55266
  async (newVal) => {
55270
- var _a3;
55267
+ var _a3, _b2;
55271
55268
  console.log("ccflowData.messageList", ccflowData.messageList);
55272
55269
  console.log("newVal", newVal);
55273
- if (newVal && newVal == ((_a3 = JSON.parse(localStorage.getItem("userInfos"))) == null ? void 0 : _a3.userId)) {
55270
+ console.log(
55271
+ 'JSON.parse(localStorage.getItem("userInfos"))?.userId',
55272
+ (_a3 = JSON.parse(localStorage.getItem("userInfos"))) == null ? void 0 : _a3.userId
55273
+ );
55274
+ if (newVal && newVal == ((_b2 = JSON.parse(localStorage.getItem("userInfos"))) == null ? void 0 : _b2.userId)) {
55275
+ console.log("相等");
55274
55276
  await getUnReadMessage();
55275
55277
  }
55276
55278
  },
@@ -55422,7 +55424,7 @@ const _sfc_main = {
55422
55424
  };
55423
55425
  }
55424
55426
  };
55425
- const _withScopeId = (n10) => (pushScopeId("data-v-62f6ac75"), n10 = n10(), popScopeId(), n10);
55427
+ const _withScopeId = (n10) => (pushScopeId("data-v-60046590"), n10 = n10(), popScopeId(), n10);
55426
55428
  const _hoisted_1 = {
55427
55429
  class: "bg-white defaultTS funcTC relative",
55428
55430
  style: { "padding-bottom": "10px", "margin-bottom": "10px" }
@@ -56579,7 +56581,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
56579
56581
  }, 8, ["show"])
56580
56582
  ], 64);
56581
56583
  }
56582
- const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-62f6ac75"]]);
56584
+ const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-60046590"]]);
56583
56585
  const style = "";
56584
56586
  const components = [TSider];
56585
56587
  installComponents();