tx-sider 2.1.18 → 2.1.20

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
@@ -27645,7 +27645,7 @@ const _sfc_main = {
27645
27645
  // replace: 路由replace; push:路由push
27646
27646
  setup(props, ctx) {
27647
27647
  useRouter();
27648
- useRoute();
27648
+ const route = useRoute();
27649
27649
  const changePWDref = ref();
27650
27650
  const moduleTestS = ref([]);
27651
27651
  const isSystems = ref(props.isSystems);
@@ -27965,6 +27965,20 @@ const _sfc_main = {
27965
27965
  }
27966
27966
  data3.moduleVisible = true;
27967
27967
  };
27968
+ const closeSysetmModal = () => {
27969
+ data3.systemVisible = false;
27970
+ ifRemoveToken();
27971
+ };
27972
+ const closeDgVisible = () => {
27973
+ data3.dgVisible = false;
27974
+ ifRemoveToken();
27975
+ };
27976
+ const ifRemoveToken = () => {
27977
+ console.log("移除token", route);
27978
+ if (route.path == "/login") {
27979
+ localStorage.removeItem("token");
27980
+ }
27981
+ };
27968
27982
  const setofbooksTest = ref([]);
27969
27983
  const baseTest = ref();
27970
27984
  ref();
@@ -28108,6 +28122,7 @@ const _sfc_main = {
28108
28122
  };
28109
28123
  const cloneBaseModal = () => {
28110
28124
  data3.baseVisible = false;
28125
+ ifRemoveToken();
28111
28126
  };
28112
28127
  const openBaseModal = async () => {
28113
28128
  var _a;
@@ -28190,7 +28205,9 @@ const _sfc_main = {
28190
28205
  window.location.href = goUrl.value;
28191
28206
  };
28192
28207
  const moduleHandle = () => {
28208
+ console.log("关闭");
28193
28209
  data3.moduleVisible = false;
28210
+ ifRemoveToken();
28194
28211
  };
28195
28212
  const openModule = () => {
28196
28213
  data3.moduleVisible = true;
@@ -28272,6 +28289,9 @@ const _sfc_main = {
28272
28289
  clickModuleVisible,
28273
28290
  changeModule,
28274
28291
  changesystem,
28292
+ closeSysetmModal,
28293
+ ifRemoveToken,
28294
+ closeDgVisible,
28275
28295
  getOfbooksTest,
28276
28296
  getBaseTest,
28277
28297
  getgjTest,
@@ -28305,7 +28325,7 @@ const _sfc_main = {
28305
28325
  };
28306
28326
  }
28307
28327
  };
28308
- const _withScopeId = (n2) => (pushScopeId("data-v-26b14a39"), n2 = n2(), popScopeId(), n2);
28328
+ const _withScopeId = (n2) => (pushScopeId("data-v-018376e2"), n2 = n2(), popScopeId(), n2);
28309
28329
  const _hoisted_1 = {
28310
28330
  class: "bg-white defaultTS funcTC relative",
28311
28331
  style: { "padding-bottom": "10px", "margin-bottom": "10px" }
@@ -28894,7 +28914,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
28894
28914
  _hoisted_33,
28895
28915
  createElementVNode("div", {
28896
28916
  class: "h-[60px] w-[80px] zIndex",
28897
- onClick: _cache[14] || (_cache[14] = ($event) => _ctx.systemVisible = false)
28917
+ onClick: _cache[14] || (_cache[14] = ($event) => $setup.closeSysetmModal())
28898
28918
  })
28899
28919
  ])
28900
28920
  ]),
@@ -29136,7 +29156,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
29136
29156
  _hoisted_74,
29137
29157
  createElementVNode("div", {
29138
29158
  class: "h-[60px] w-[80px] zIndex",
29139
- onClick: _cache[21] || (_cache[21] = ($event) => _ctx.dgVisible = false)
29159
+ onClick: _cache[21] || (_cache[21] = ($event) => $setup.closeDgVisible())
29140
29160
  })
29141
29161
  ])
29142
29162
  ]),
@@ -29258,7 +29278,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
29258
29278
  }, 8, ["show"])
29259
29279
  ], 64);
29260
29280
  }
29261
- const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-26b14a39"]]);
29281
+ const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-018376e2"]]);
29262
29282
  const components = [TSider];
29263
29283
  installComponents();
29264
29284
  function installComponents() {