befly-admin 3.5.17 → 3.5.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "befly-admin",
3
- "version": "3.5.17",
3
+ "version": "3.5.18",
4
4
  "description": "Befly Admin - 基于 Vue3 + OpenTiny Vue 的后台管理系统",
5
5
  "type": "module",
6
6
  "private": false,
@@ -26,7 +26,7 @@
26
26
  "preview": "vite preview"
27
27
  },
28
28
  "dependencies": {
29
- "@befly-addon/admin": "^1.1.15",
29
+ "@befly-addon/admin": "^1.1.16",
30
30
  "@iconify-json/lucide": "^1.2.79",
31
31
  "axios": "^1.13.2",
32
32
  "befly-shared": "^1.2.3",
@@ -42,5 +42,5 @@
42
42
  "pnpm": ">=10.0.0",
43
43
  "bun": ">=1.3.0"
44
44
  },
45
- "gitHead": "1f449cb3921fc8536f7392f039a6655b1b07b5e5"
45
+ "gitHead": "752a66ec3d1b092c333b501fb40f8421809899c5"
46
46
  }
@@ -104,9 +104,9 @@ const $Method = {
104
104
  async fetchUserMenus() {
105
105
  try {
106
106
  const { data } = await $Http('/addon/admin/menu/all');
107
- // 保存一维数据
108
- $Data.userMenusFlat = data;
109
- $Data.userMenus = arrayToTree(data);
107
+ // 保存一维数据(data 是 { lists: [] } 格式)
108
+ $Data.userMenusFlat = data.lists || [];
109
+ $Data.userMenus = arrayToTree(data.lists || []);
110
110
  $Method.setActiveMenu();
111
111
  } catch (error) {
112
112
  console.error('获取用户菜单失败:', error);