leisure-core 0.6.3 → 0.6.4
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 +2 -1
- package/package.json +1 -1
package/le-home/src/main.vue
CHANGED
|
@@ -258,13 +258,14 @@ export default {
|
|
|
258
258
|
this.$store.commit("setDict", dict);
|
|
259
259
|
|
|
260
260
|
const menus = JSON.parse(JSON.stringify(this.$store.getters.menu));
|
|
261
|
+
const vm = this; // 保存组件实例引用
|
|
261
262
|
this.menuData = menus.filter(function (item) {
|
|
262
263
|
if (item.children) {
|
|
263
264
|
// 确保子菜单数组的响应性
|
|
264
265
|
const filteredChildren = item.children.filter(
|
|
265
266
|
(item1) => item1.ishide === 0
|
|
266
267
|
);
|
|
267
|
-
|
|
268
|
+
vm.$set(item, "children", filteredChildren);
|
|
268
269
|
}
|
|
269
270
|
return item;
|
|
270
271
|
});
|