tx-sider 2.1.7 → 2.1.9

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
@@ -28013,10 +28013,10 @@ const _sfc_main = {
28013
28013
  setSetOfBookIdToCookie(res);
28014
28014
  setTokenToCookie();
28015
28015
  }
28016
- currentBaseGet().then((res2) => {
28016
+ res ? currentBaseGet().then((res2) => {
28017
28017
  localStorage.setItem("baseId", res2);
28018
28018
  baseId.value = localStorage.getItem("baseId");
28019
- });
28019
+ }) : "";
28020
28020
  });
28021
28021
  const getOfbooksTest = (id, showModal = true) => {
28022
28022
  const okHandle = async () => {
@@ -28241,10 +28241,9 @@ const _sfc_main = {
28241
28241
  data3.systemVisible = true;
28242
28242
  };
28243
28243
  const onFunOpen = async () => {
28244
+ localStorage.removeItem("selectModule");
28244
28245
  await getPermissionModuleList().then((res) => {
28245
- console.log("~🚀RES🚀~", permissionModuleList.value);
28246
28246
  permissionModuleList.value = updateIconModuleList(res);
28247
- console.log("~🚀permissionModuleList🚀~", permissionModuleList.value);
28248
28247
  if (permissionModuleList.value.length === 0) {
28249
28248
  console.log("~🚀456🚀~", permissionModuleList.value);
28250
28249
  message.info("你暂无权限,请联系管理员分配");
@@ -28253,6 +28252,8 @@ const _sfc_main = {
28253
28252
  } else {
28254
28253
  systemVisibleTrue();
28255
28254
  }
28255
+ }).catch((error) => {
28256
+ console.log("error", error);
28256
28257
  });
28257
28258
  };
28258
28259
  return {
@@ -28305,7 +28306,7 @@ const _sfc_main = {
28305
28306
  };
28306
28307
  }
28307
28308
  };
28308
- const _withScopeId = (n2) => (pushScopeId("data-v-61e898b5"), n2 = n2(), popScopeId(), n2);
28309
+ const _withScopeId = (n2) => (pushScopeId("data-v-17ea20fa"), n2 = n2(), popScopeId(), n2);
28309
28310
  const _hoisted_1 = {
28310
28311
  class: "bg-white defaultTS funcTC relative",
28311
28312
  style: { "padding-bottom": "10px", "margin-bottom": "10px" }
@@ -29258,7 +29259,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
29258
29259
  }, 8, ["show"])
29259
29260
  ], 64);
29260
29261
  }
29261
- const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-61e898b5"]]);
29262
+ const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-17ea20fa"]]);
29262
29263
  const components = [TSider];
29263
29264
  installComponents();
29264
29265
  function installComponents() {