tx-sider 2.1.31 → 2.1.34
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 +26 -14
- package/lib/TXUI.umd.js +2 -2
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/TXUI.mjs
CHANGED
|
@@ -27911,7 +27911,9 @@ const _sfc_main = {
|
|
|
27911
27911
|
};
|
|
27912
27912
|
const closeSysetmModal = () => {
|
|
27913
27913
|
data3.systemVisible = false;
|
|
27914
|
-
|
|
27914
|
+
if (props.isLogin) {
|
|
27915
|
+
localStorage.removeItem("token");
|
|
27916
|
+
}
|
|
27915
27917
|
};
|
|
27916
27918
|
const closeDgVisible = () => {
|
|
27917
27919
|
data3.dgVisible = false;
|
|
@@ -28064,13 +28066,23 @@ const _sfc_main = {
|
|
|
28064
28066
|
okHandle();
|
|
28065
28067
|
}
|
|
28066
28068
|
};
|
|
28067
|
-
const
|
|
28068
|
-
data3.
|
|
28069
|
-
|
|
28069
|
+
const closeModule = () => {
|
|
28070
|
+
data3.moduleVisible = false;
|
|
28071
|
+
if (props.isLogin) {
|
|
28072
|
+
localStorage.removeItem("token");
|
|
28073
|
+
}
|
|
28070
28074
|
};
|
|
28071
28075
|
const closeSetofBookModal = () => {
|
|
28072
28076
|
data3.setofbooksVisible = false;
|
|
28073
|
-
|
|
28077
|
+
if (props.isLogin && !localStorage.getItem("selectModule")) {
|
|
28078
|
+
localStorage.removeItem("token");
|
|
28079
|
+
}
|
|
28080
|
+
};
|
|
28081
|
+
const cloneBaseModal = () => {
|
|
28082
|
+
data3.baseVisible = false;
|
|
28083
|
+
if (props.isLogin && !localStorage.getItem("selectModule") && !localStorage.getItem("setOfBookId")) {
|
|
28084
|
+
localStorage.removeItem("token");
|
|
28085
|
+
}
|
|
28074
28086
|
};
|
|
28075
28087
|
const openBaseModal = async () => {
|
|
28076
28088
|
var _a;
|
|
@@ -28156,10 +28168,6 @@ const _sfc_main = {
|
|
|
28156
28168
|
console.log("关闭");
|
|
28157
28169
|
data3.moduleVisible = false;
|
|
28158
28170
|
};
|
|
28159
|
-
const closeModule = () => {
|
|
28160
|
-
data3.moduleVisible = false;
|
|
28161
|
-
ifRemoveToken();
|
|
28162
|
-
};
|
|
28163
28171
|
const openModule = () => {
|
|
28164
28172
|
data3.moduleVisible = true;
|
|
28165
28173
|
};
|
|
@@ -28213,11 +28221,15 @@ const _sfc_main = {
|
|
|
28213
28221
|
data3.systemVisible = true;
|
|
28214
28222
|
};
|
|
28215
28223
|
const onFunOpen = async () => {
|
|
28216
|
-
await getPermissionModuleListData();
|
|
28217
28224
|
console.log("🚀🚀🚀🚀", permissionModuleList.value);
|
|
28218
28225
|
if (permissionModuleList.value.length === 0) {
|
|
28219
|
-
|
|
28220
|
-
|
|
28226
|
+
const res = await getPermissionModuleList();
|
|
28227
|
+
console.log("🚀🚀res🚀🚀", permissionModuleList.value);
|
|
28228
|
+
permissionModuleList.value = updateIconModuleList(res);
|
|
28229
|
+
console.log("🚀🚀🚀🚀", permissionModuleList.value);
|
|
28230
|
+
if (permissionModuleList.value.length === 0) {
|
|
28231
|
+
message.info("你暂无权限,请联系管理员分配");
|
|
28232
|
+
}
|
|
28221
28233
|
} else if (permissionModuleList.value.length === 1) {
|
|
28222
28234
|
oneModule(permissionModuleList.value[0].permissionModuleName);
|
|
28223
28235
|
} else {
|
|
@@ -28280,7 +28292,7 @@ const _sfc_main = {
|
|
|
28280
28292
|
};
|
|
28281
28293
|
}
|
|
28282
28294
|
};
|
|
28283
|
-
const _withScopeId = (n2) => (pushScopeId("data-v-
|
|
28295
|
+
const _withScopeId = (n2) => (pushScopeId("data-v-17b6cafd"), n2 = n2(), popScopeId(), n2);
|
|
28284
28296
|
const _hoisted_1 = {
|
|
28285
28297
|
class: "bg-white defaultTS funcTC relative",
|
|
28286
28298
|
style: { "padding-bottom": "10px", "margin-bottom": "10px" }
|
|
@@ -29233,7 +29245,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29233
29245
|
}, 8, ["show"])
|
|
29234
29246
|
], 64);
|
|
29235
29247
|
}
|
|
29236
|
-
const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
29248
|
+
const TSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-17b6cafd"]]);
|
|
29237
29249
|
const components = [TSider];
|
|
29238
29250
|
installComponents();
|
|
29239
29251
|
function installComponents() {
|