tx-sider 2.1.9 → 2.1.10

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
@@ -24505,11 +24505,15 @@ const _sfc_main$1 = {
24505
24505
  menuTitle.value = props.menuTitle;
24506
24506
  }
24507
24507
  );
24508
- watch(() => props.module, () => {
24509
- if (props.module) {
24510
- getMenuList();
24508
+ const route = useRoute();
24509
+ watch(
24510
+ () => props.module,
24511
+ () => {
24512
+ if (props.module && route.path !== "/login") {
24513
+ getMenuList();
24514
+ }
24511
24515
  }
24512
- });
24516
+ );
24513
24517
  const menuList = ref([]);
24514
24518
  const getMenuList = async () => {
24515
24519
  const { items } = await getPermissionSetOfBookMenuList(props.module);
@@ -24547,7 +24551,7 @@ const _sfc_main$1 = {
24547
24551
  };
24548
24552
  }
24549
24553
  };
24550
- const _withScopeId$1 = (n2) => (pushScopeId("data-v-d658c1e0"), n2 = n2(), popScopeId(), n2);
24554
+ const _withScopeId$1 = (n2) => (pushScopeId("data-v-629ca66a"), n2 = n2(), popScopeId(), n2);
24551
24555
  const _hoisted_1$1 = {
24552
24556
  key: 0,
24553
24557
  class: "w-[80px] flex flex-col justify-center focusTC bb-f5f5f5 br-f5f5f5",
@@ -24668,7 +24672,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
24668
24672
  }, 8, ["activeKey"])
24669
24673
  ]);
24670
24674
  }
24671
- const EconomicsSider = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-d658c1e0"]]);
24675
+ const EconomicsSider = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-629ca66a"]]);
24672
24676
  window.location.hostname.split(".");
24673
24677
  function encryptionStr(data3) {
24674
24678
  if (data3 === null || data3 === void 0) {