From 56fd44388bdc144a113e7c07278fbf05aeed5985 Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Wed, 7 Oct 2026 12:16:42 +0800 Subject: [PATCH] chore(menu): hide research-donation protocol menus; keep routes for unified page deep links. Co-authored-by: Cursor --- backend/app/api/menu.py | 10 ++-------- web-admin/src/router/modules/sqxp.ts | 13 ++----------- 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/backend/app/api/menu.py b/backend/app/api/menu.py index a566c4b2..cf61efaf 100644 --- a/backend/app/api/menu.py +++ b/backend/app/api/menu.py @@ -106,6 +106,7 @@ STATIC_MENU_TREE = [ "title": "科研捐赠", "icon": "ri:hand-heart-line", "keepAlive": False, + "isHide": True, "roles": ["admin"], }, "children": [ @@ -121,14 +122,7 @@ STATIC_MENU_TREE = [ "name": "ResearchDonationAudit", "path": "audit", "component": "/research-donation/audit/index", - "meta": {"title": "捐赠协议单", "keepAlive": True, "menuCode": "biz:researchDonationAudit:list"}, - }, - { - "id": "60000000000000000000000000000004", - "name": "ResearchDonationSampleInfo", - "path": "sample-info", - "component": "/research-donation/sample-info/index", - "meta": {"title": "样本信息管理", "keepAlive": True, "menuCode": "research-donation:sample-info:list"}, + "meta": {"title": "捐赠协议单", "keepAlive": True, "isHide": True, "menuCode": "biz:researchDonationAudit:list"}, }, ], }, diff --git a/web-admin/src/router/modules/sqxp.ts b/web-admin/src/router/modules/sqxp.ts index a06c7cbe..19ca964f 100644 --- a/web-admin/src/router/modules/sqxp.ts +++ b/web-admin/src/router/modules/sqxp.ts @@ -189,6 +189,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [ title: '科研捐赠', icon: 'ri:hand-heart-line', keepAlive: false, + isHide: true, roles: ['admin'] }, children: [ @@ -212,19 +213,9 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [ meta: { title: '捐赠协议单', keepAlive: true, + isHide: true, menuCode: 'biz:researchDonationAudit:list' } - }, - { - id: '60000000000000000000000000000004', - name: 'ResearchDonationSampleInfo', - path: 'sample-info', - component: '/research-donation/sample-info/index', - meta: { - title: '样本信息管理', - keepAlive: true, - menuCode: 'research-donation:sample-info:list' - } } ] },