tx-sider 2.1.6 → 2.1.7

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
@@ -28240,17 +28240,20 @@ const _sfc_main = {
28240
28240
  await getPermissionModuleListData();
28241
28241
  data3.systemVisible = true;
28242
28242
  };
28243
- const onFunOpen = () => {
28244
- getPermissionModuleListData();
28245
- console.log("~🚀permissionModuleList🚀~", permissionModuleList.value);
28246
- if (permissionModuleList.value.length === 0) {
28247
- console.log("~🚀456🚀~", permissionModuleList.value);
28248
- message.info("äŊ æš‚无权限īŧŒč¯ˇč”įŗģįŽĄį†å‘˜åˆ†é…");
28249
- } else if (permissionModuleList.value.length === 1) {
28250
- oneModule(permissionModuleList.value[0].name);
28251
- } else {
28252
- systemVisibleTrue();
28253
- }
28243
+ const onFunOpen = async () => {
28244
+ await getPermissionModuleList().then((res) => {
28245
+ console.log("~🚀RES🚀~", permissionModuleList.value);
28246
+ permissionModuleList.value = updateIconModuleList(res);
28247
+ console.log("~🚀permissionModuleList🚀~", permissionModuleList.value);
28248
+ if (permissionModuleList.value.length === 0) {
28249
+ console.log("~🚀456🚀~", permissionModuleList.value);
28250
+ message.info("äŊ æš‚无权限īŧŒč¯ˇč”įŗģįŽĄį†å‘˜åˆ†é…");
28251
+ } else if (permissionModuleList.value.length === 1) {
28252
+ oneModule(permissionModuleList.value[0].name);
28253
+ } else {
28254
+ systemVisibleTrue();
28255
+ }
28256
+ });
28254
28257
  };
28255
28258
  return {
28256
28259
  ...refData,
@@ -28302,7 +28305,7 @@ const _sfc_main = {
28302
28305
  };
28303
28306
  }
28304
28307
  };
28305
- const _withScopeId = (n2) => (pushScopeId("data-v-a14938a2"), n2 = n2(), popScopeId(), n2);
28308
+ const _withScopeId = (n2) => (pushScopeId("data-v-61e898b5"), n2 = n2(), popScopeId(), n2);
28306
28309
  const _hoisted_1 = {
28307
28310
  class: "bg-white defaultTS funcTC relative",
28308
28311
  style: { "padding-bottom": "10px", "margin-bottom": "10px" }
@@ -29255,7 +29258,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
29255
29258
  }, 8, ["show"])
29256
29259
  ], 64);
29257
29260
  }
29258
- const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-a14938a2"]]);
29261
+ const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-61e898b5"]]);
29259
29262
  const components = [TSider];
29260
29263
  installComponents();
29261
29264
  function installComponents() {