From 5ad22c3af62fff7371ec7c1bfb507c40dbdf77f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=8E=E4=BD=97?= Date: Sun, 7 Jun 2026 14:41:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(V11):=20=E4=BF=AE=E6=AD=A3is=5Fframe?= =?UTF-8?q?=E5=80=BC=E4=BF=AE=E5=A4=8DInvalid=20path=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 根因: V10新增菜单is_frame='0',原始菜单是'1' - getRouterPath()只在is_frame='1'时加/前缀 - 导致路由path='anesthesia'而非'/anesthesia',Vue Router报Invalid path - 修正全部189个新菜单的is_frame为'1' --- .../db/migration/V11__menu_cleanup_placeholder_paths.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/healthlink-his-server/healthlink-his-application/src/main/resources/db/migration/V11__menu_cleanup_placeholder_paths.sql b/healthlink-his-server/healthlink-his-application/src/main/resources/db/migration/V11__menu_cleanup_placeholder_paths.sql index 21dc77e3e..31d105ec3 100644 --- a/healthlink-his-server/healthlink-his-application/src/main/resources/db/migration/V11__menu_cleanup_placeholder_paths.sql +++ b/healthlink-his-server/healthlink-his-application/src/main/resources/db/migration/V11__menu_cleanup_placeholder_paths.sql @@ -202,3 +202,7 @@ UPDATE healthlink_his.sys_menu SET status = '1', visible = '1' WHERE menu_id = 2 -- 394 医保结算 → 与20248医保结算重复 DELETE FROM healthlink_his.sys_role_menu WHERE menu_id IN (216, 229, 305, 308, 341, 358, 359, 394); DELETE FROM healthlink_his.sys_menu WHERE menu_id IN (216, 229, 305, 308, 341, 358, 359, 394); + +-- 9. 修正V10新增菜单的is_frame值(原始菜单是'1',新增菜单错误设为'0'导致路由路径缺少/前缀) +-- getRouterPath()方法只在is_frame='1'时才为顶级目录添加/前缀 +UPDATE healthlink_his.sys_menu SET is_frame = '1' WHERE menu_id >= 20001 AND is_frame = '0';