tx-sider 2.1.21 → 2.1.24

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
@@ -27615,6 +27615,11 @@ const _sfc_main = {
27615
27615
  type: String,
27616
27616
  default: "账套"
27617
27617
  },
27618
+ isLogin: {
27619
+ // 更改账套名称
27620
+ type: Boolean,
27621
+ default: false
27622
+ },
27618
27623
  baseShow: Boolean,
27619
27624
  // 是否显示基地功能
27620
27625
  allBasesShow: Boolean,
@@ -27974,8 +27979,7 @@ const _sfc_main = {
27974
27979
  ifRemoveToken();
27975
27980
  };
27976
27981
  const ifRemoveToken = () => {
27977
- console.log("移除token", route);
27978
- if (route.path == "/login") {
27982
+ if (props.isLogin) {
27979
27983
  localStorage.removeItem("token");
27980
27984
  }
27981
27985
  };
@@ -28326,7 +28330,7 @@ const _sfc_main = {
28326
28330
  };
28327
28331
  }
28328
28332
  };
28329
- const _withScopeId = (n2) => (pushScopeId("data-v-459becf3"), n2 = n2(), popScopeId(), n2);
28333
+ const _withScopeId = (n2) => (pushScopeId("data-v-0a256503"), n2 = n2(), popScopeId(), n2);
28330
28334
  const _hoisted_1 = {
28331
28335
  class: "bg-white defaultTS funcTC relative",
28332
28336
  style: { "padding-bottom": "10px", "margin-bottom": "10px" }
@@ -29279,7 +29283,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
29279
29283
  }, 8, ["show"])
29280
29284
  ], 64);
29281
29285
  }
29282
- const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-459becf3"]]);
29286
+ const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0a256503"]]);
29283
29287
  const components = [TSider];
29284
29288
  installComponents();
29285
29289
  function installComponents() {