From be98dbe7ac08493e6858be35201850c9287d9834 Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Wed, 7 Oct 2026 12:18:59 +0800 Subject: [PATCH] fix(menu): restore hidden research-donation sample-info route for deep links. Task 4 incorrectly removed ResearchDonationSampleInfo; keep it isHide with parent hidden so unified sample-info deep links still work. Co-authored-by: Cursor --- backend/app/api/menu.py | 12 ++++++++++++ web-admin/src/router/modules/sqxp.ts | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/backend/app/api/menu.py b/backend/app/api/menu.py index cf61efaf..a081e5df 100644 --- a/backend/app/api/menu.py +++ b/backend/app/api/menu.py @@ -124,6 +124,18 @@ STATIC_MENU_TREE = [ "component": "/research-donation/audit/index", "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, + "isHide": True, + "menuCode": "research-donation:sample-info:list", + }, + }, ], }, diff --git a/web-admin/src/router/modules/sqxp.ts b/web-admin/src/router/modules/sqxp.ts index 19ca964f..f4ff7330 100644 --- a/web-admin/src/router/modules/sqxp.ts +++ b/web-admin/src/router/modules/sqxp.ts @@ -216,6 +216,18 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [ isHide: true, menuCode: 'biz:researchDonationAudit:list' } + }, + { + id: '60000000000000000000000000000004', + name: 'ResearchDonationSampleInfo', + path: 'sample-info', + component: '/research-donation/sample-info/index', + meta: { + title: '样本信息管理', + keepAlive: true, + isHide: true, + menuCode: 'research-donation:sample-info:list' + } } ] },