kz-ui-base 1.0.16 → 1.0.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.
@@ -8,6 +8,7 @@
8
8
  >
9
9
  <template v-for="(item, index) in topMenusNew">
10
10
  <el-menu-item
11
+ v-if="item.isShow"
11
12
  :style="{ '--theme': theme }"
12
13
  :index="index + ''"
13
14
  :key="index + 'l'"
@@ -125,6 +126,7 @@ export default {
125
126
 
126
127
  this.list.forEach((item) => {
127
128
  this.topMenusNew.push({
129
+ isShow:item.isShow,
128
130
  systemCode: item.systemCode,
129
131
  meta: { title: item.systemName, icon: "excel" },
130
132
  path: item.route,
@@ -332,18 +334,18 @@ export default {
332
334
  // this.currentIndex = key.path;
333
335
  // if (index === "0") {
334
336
  // this.topMenusShow = true;
335
- // this.$store.commit(
336
- // "SET_SIDEBAR_ROUTERS",
337
- // this.$store.state.permission.defaultRoutes
338
- // );
339
- // this.$store.dispatch("settings/changeSetting", {
340
- // key: "systemId",
341
- // value: key.systemId,
342
- // });
343
- // localStorage.setItem("systemId", key.systemId);
344
- // this.$store.dispatch("GenerateRoutes").then((accessRoutes) => {
345
- // this.$router.addRoutes(accessRoutes);
346
- // });
337
+ // this.$store.commit(
338
+ // "SET_SIDEBAR_ROUTERS",
339
+ // this.$store.state.permission.defaultRoutes
340
+ // );
341
+ // this.$store.dispatch("settings/changeSetting", {
342
+ // key: "systemId",
343
+ // value: key.systemId,
344
+ // });
345
+ localStorage.setItem("systemId", key.systemId);
346
+ this.$store.dispatch("GenerateRoutes").then((accessRoutes) => {
347
+ this.$router.addRoutes(accessRoutes);
348
+ });
347
349
  // this.$store.state.settings.isShow = false;
348
350
  // this.$store.state.settings.url = key.path;
349
351
  // return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kz-ui-base",
3
- "version": "1.0.16",
3
+ "version": "1.0.20",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {