tx-sider 2.1.18 → 2.1.19
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 +24 -5
- package/lib/TXUI.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +2 -2
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,19 @@ 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
|
+
if (route.path == "/login") {
|
|
27978
|
+
localStorage.removeItem("token");
|
|
27979
|
+
}
|
|
27980
|
+
};
|
|
27968
27981
|
const setofbooksTest = ref([]);
|
|
27969
27982
|
const baseTest = ref();
|
|
27970
27983
|
ref();
|
|
@@ -28108,6 +28121,7 @@ const _sfc_main = {
|
|
|
28108
28121
|
};
|
|
28109
28122
|
const cloneBaseModal = () => {
|
|
28110
28123
|
data3.baseVisible = false;
|
|
28124
|
+
ifRemoveToken();
|
|
28111
28125
|
};
|
|
28112
28126
|
const openBaseModal = async () => {
|
|
28113
28127
|
var _a;
|
|
@@ -28190,7 +28204,9 @@ const _sfc_main = {
|
|
|
28190
28204
|
window.location.href = goUrl.value;
|
|
28191
28205
|
};
|
|
28192
28206
|
const moduleHandle = () => {
|
|
28207
|
+
console.log("关闭");
|
|
28193
28208
|
data3.moduleVisible = false;
|
|
28209
|
+
ifRemoveToken();
|
|
28194
28210
|
};
|
|
28195
28211
|
const openModule = () => {
|
|
28196
28212
|
data3.moduleVisible = true;
|
|
@@ -28272,6 +28288,9 @@ const _sfc_main = {
|
|
|
28272
28288
|
clickModuleVisible,
|
|
28273
28289
|
changeModule,
|
|
28274
28290
|
changesystem,
|
|
28291
|
+
closeSysetmModal,
|
|
28292
|
+
ifRemoveToken,
|
|
28293
|
+
closeDgVisible,
|
|
28275
28294
|
getOfbooksTest,
|
|
28276
28295
|
getBaseTest,
|
|
28277
28296
|
getgjTest,
|
|
@@ -28305,7 +28324,7 @@ const _sfc_main = {
|
|
|
28305
28324
|
};
|
|
28306
28325
|
}
|
|
28307
28326
|
};
|
|
28308
|
-
const _withScopeId = (n2) => (pushScopeId("data-v-
|
|
28327
|
+
const _withScopeId = (n2) => (pushScopeId("data-v-5c2109a5"), n2 = n2(), popScopeId(), n2);
|
|
28309
28328
|
const _hoisted_1 = {
|
|
28310
28329
|
class: "bg-white defaultTS funcTC relative",
|
|
28311
28330
|
style: { "padding-bottom": "10px", "margin-bottom": "10px" }
|
|
@@ -28894,7 +28913,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28894
28913
|
_hoisted_33,
|
|
28895
28914
|
createElementVNode("div", {
|
|
28896
28915
|
class: "h-[60px] w-[80px] zIndex",
|
|
28897
|
-
onClick: _cache[14] || (_cache[14] = ($event) =>
|
|
28916
|
+
onClick: _cache[14] || (_cache[14] = ($event) => $setup.closeSysetmModal())
|
|
28898
28917
|
})
|
|
28899
28918
|
])
|
|
28900
28919
|
]),
|
|
@@ -29136,7 +29155,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29136
29155
|
_hoisted_74,
|
|
29137
29156
|
createElementVNode("div", {
|
|
29138
29157
|
class: "h-[60px] w-[80px] zIndex",
|
|
29139
|
-
onClick: _cache[21] || (_cache[21] = ($event) =>
|
|
29158
|
+
onClick: _cache[21] || (_cache[21] = ($event) => $setup.closeDgVisible())
|
|
29140
29159
|
})
|
|
29141
29160
|
])
|
|
29142
29161
|
]),
|
|
@@ -29258,7 +29277,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29258
29277
|
}, 8, ["show"])
|
|
29259
29278
|
], 64);
|
|
29260
29279
|
}
|
|
29261
|
-
const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
29280
|
+
const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5c2109a5"]]);
|
|
29262
29281
|
const components = [TSider];
|
|
29263
29282
|
installComponents();
|
|
29264
29283
|
function installComponents() {
|