leisure-core 0.6.3 → 0.6.5

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.
@@ -166,6 +166,7 @@
166
166
  </el-container>
167
167
  </template>
168
168
  <script>
169
+ import { cloneDeep } from "lodash";
169
170
  export default {
170
171
  name: "le-home",
171
172
  props: {
@@ -257,14 +258,10 @@ export default {
257
258
 
258
259
  this.$store.commit("setDict", dict);
259
260
 
260
- const menus = JSON.parse(JSON.stringify(this.$store.getters.menu));
261
+ const menus = cloneDeep(this.$store.getters.menu);
261
262
  this.menuData = menus.filter(function (item) {
262
263
  if (item.children) {
263
- // 确保子菜单数组的响应性
264
- const filteredChildren = item.children.filter(
265
- (item1) => item1.ishide === 0
266
- );
267
- this.$set(item, "children", filteredChildren);
264
+ item.children = item.children.filter((child) => child.ishide === 0);
268
265
  }
269
266
  return item;
270
267
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leisure-core",
3
- "version": "0.6.03",
3
+ "version": "0.6.05",
4
4
  "description": "leisure-core是京心数据基于vue2.x开发的一套后台管理系统桌面端组件库,封装了大量实用的UI控件模板,非常方便开发者快速搭建前端应用",
5
5
  "private": false,
6
6
  "author": "北方乐逍遥(zcx7878)",
@@ -20,7 +20,8 @@
20
20
  "vue": "^2.6.14",
21
21
  "vue-router": "^3.5.1",
22
22
  "vuex": "^3.6.2",
23
- "vxe-table": "^3.19.28"
23
+ "vxe-table": "^3.19.28",
24
+ "lodash": "^4.17.21"
24
25
  },
25
26
  "devDependencies": {}
26
27
  }