fix(menu): 修复两级菜单结构和嵌套问题

1. 菜单类型默认值改为 TOP_LEFT(顶部一级+左侧二级)
2. 二级菜单 component 设为空字符串避免嵌套布局
3. 前端和后端菜单数据同步更新

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-06-12 20:02:47 +08:00
1 parent e6350d5e33
commit 7f7979679f
29 files changed
+720 -200

No files matched your search

+24 -15
View File
@@ -3652,14 +3652,14 @@
"label": "logSidebarMenu()",
"file_type": "code",
"source_file": "components/core/layouts/art-menus/art-sidebar-menu/index.vue",
"source_location": "L158"
"source_location": "L159"
},
{
"id": "art_sidebar_menu_index_if",
"label": "if()",
"file_type": "code",
"source_file": "components/core/layouts/art-menus/art-sidebar-menu/index.vue",
"source_location": "L249"
"source_location": "L271"
},
{
"id": "components_core_layouts_art_menus_art_sidebar_menu_widget_sidebarsubmenu_vue",
@@ -8720,14 +8720,14 @@
"label": "fetchQcMaterialLinkedTaskUsages()",
"file_type": "code",
"source_file": "api/qc-material-usage.ts",
"source_location": "L87"
"source_location": "L84"
},
{
"id": "api_qc_material_usage_fetchmyqcmaterialusagelist",
"label": "fetchMyQcMaterialUsageList()",
"file_type": "code",
"source_file": "api/qc-material-usage.ts",
"source_location": "L93"
"source_location": "L90"
},
{
"id": "api_qc_material_ts",
@@ -21844,7 +21844,7 @@
},
{
"source": "components_core_layouts_art_menus_art_sidebar_menu_index_vue",
"target": "components_core_layouts_art_menus_art_sidebar_menu_widget_sidebarsubmenu_vue",
"target": "users_wuzilong_work_00code_zkxw_web_admin_src_types_router",
"relation": "imports_from",
"confidence": "EXTRACTED",
"source_file": "components/core/layouts/art-menus/art-sidebar-menu/index.vue",
@@ -21853,7 +21853,7 @@
},
{
"source": "components_core_layouts_art_menus_art_sidebar_menu_index_vue",
"target": "users_wuzilong_work_00code_zkxw_web_admin_src_hooks_core_usecommon",
"target": "components_core_layouts_art_menus_art_sidebar_menu_widget_sidebarsubmenu_vue",
"relation": "imports_from",
"confidence": "EXTRACTED",
"source_file": "components/core/layouts/art-menus/art-sidebar-menu/index.vue",
@@ -21862,20 +21862,29 @@
},
{
"source": "components_core_layouts_art_menus_art_sidebar_menu_index_vue",
"target": "core",
"target": "users_wuzilong_work_00code_zkxw_web_admin_src_hooks_core_usecommon",
"relation": "imports_from",
"confidence": "EXTRACTED",
"source_file": "components/core/layouts/art-menus/art-sidebar-menu/index.vue",
"source_location": "L144",
"weight": 1.0
},
{
"source": "components_core_layouts_art_menus_art_sidebar_menu_index_vue",
"target": "core",
"relation": "imports_from",
"confidence": "EXTRACTED",
"source_file": "components/core/layouts/art-menus/art-sidebar-menu/index.vue",
"source_location": "L145",
"weight": 1.0
},
{
"source": "components_core_layouts_art_menus_art_sidebar_menu_index_vue",
"target": "art_sidebar_menu_index_logsidebarmenu",
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "components/core/layouts/art-menus/art-sidebar-menu/index.vue",
"source_location": "L158",
"source_location": "L159",
"weight": 1.0
},
{
@@ -21884,7 +21893,7 @@
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "components/core/layouts/art-menus/art-sidebar-menu/index.vue",
"source_location": "L249",
"source_location": "L271",
"weight": 1.0
},
{
@@ -21893,7 +21902,7 @@
"relation": "calls",
"confidence": "EXTRACTED",
"source_file": "components/core/layouts/art-menus/art-sidebar-menu/index.vue",
"source_location": "L250",
"source_location": "L272",
"weight": 1.0
},
{
@@ -28859,7 +28868,7 @@
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "api/qc-material-usage.ts",
"source_location": "L87",
"source_location": "L84",
"weight": 1.0
},
{
@@ -28868,7 +28877,7 @@
"relation": "contains",
"confidence": "EXTRACTED",
"source_file": "api/qc-material-usage.ts",
"source_location": "L93",
"source_location": "L90",
"weight": 1.0
},
{
@@ -43273,7 +43282,7 @@
"confidence": "INFERRED",
"confidence_score": 0.8,
"source_file": "api/qc-material-usage.ts",
"source_location": "L81",
"source_location": "L78",
"weight": 1.0
},
{
@@ -43283,7 +43292,7 @@
"confidence": "INFERRED",
"confidence_score": 0.8,
"source_file": "api/qc-material-usage.ts",
"source_location": "L88",
"source_location": "L85",
"weight": 1.0
},
{
@@ -43293,7 +43302,7 @@
"confidence": "INFERRED",
"confidence_score": 0.8,
"source_file": "api/qc-material-usage.ts",
"source_location": "L103",
"source_location": "L100",
"weight": 1.0
},
{