leisure-core 0.6.1 → 0.6.2
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/le-home/src/main.vue +14 -3
- package/package.json +1 -1
package/le-home/src/main.vue
CHANGED
|
@@ -256,9 +256,19 @@ export default {
|
|
|
256
256
|
];
|
|
257
257
|
|
|
258
258
|
this.$store.commit("setDict", dict);
|
|
259
|
-
const menus = JSON.parse(JSON.stringify(this.$store.getters.menu));
|
|
260
|
-
|
|
261
|
-
this.menuData = menus.filter(function (item) {
|
|
259
|
+
// const menus = JSON.parse(JSON.stringify(this.$store.getters.menu));
|
|
260
|
+
|
|
261
|
+
// this.menuData = menus.filter(function (item) {
|
|
262
|
+
// if (item.children) {
|
|
263
|
+
// item.children = item.children.filter(function (item1) {
|
|
264
|
+
// return item1.ishide === 0;
|
|
265
|
+
// });
|
|
266
|
+
// }
|
|
267
|
+
// return item;
|
|
268
|
+
// });
|
|
269
|
+
|
|
270
|
+
this.menuData = this.$store.getters.menu;
|
|
271
|
+
this.menuData = this.$store.getters.menu.filter(function (item) {
|
|
262
272
|
if (item.children) {
|
|
263
273
|
item.children = item.children.filter(function (item1) {
|
|
264
274
|
return item1.ishide === 0;
|
|
@@ -266,6 +276,7 @@ export default {
|
|
|
266
276
|
}
|
|
267
277
|
return item;
|
|
268
278
|
});
|
|
279
|
+
|
|
269
280
|
this.$emit("homeInit");
|
|
270
281
|
document.addEventListener("keydown", this.handleKeyDown);
|
|
271
282
|
},
|