From 2969d235e497d09af7034ca1709ae77a3bf2150d Mon Sep 17 00:00:00 2001 From: chenxing Date: Tue, 15 Sep 2026 18:44:30 +0800 Subject: [PATCH] =?UTF-8?q?docs(router):=20=E6=9B=B4=E6=96=B0=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E8=A1=A8=E6=B3=A8=E9=87=8A=E2=80=94=E2=80=94=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E6=94=B9=E7=94=B1=20UserBase=20app=5Fmodule=20?= =?UTF-8?q?=E4=B8=8B=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 后端 GetUserMod 已不再返回硬编码 MENUS(改为平台下发模块树),本文件头注释仍写着 「菜单不接 app_module、modId 为本应用内部约定(与 FlowBaseController.MENUS 同源)」, 已失效。改为写明两处新的对齐约束:① path 必须与 app_module.path 逐字一致(layout 优先 按 path 匹配高亮,modId 仅兜底);② meta.modId = 对应 app_module.custom_id(后端映射时 modId 取 custom_id)。路由表本身零改动。 --- src/router/routes.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/router/routes.ts b/src/router/routes.ts index 7b3a018..c0f168b 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -1,8 +1,11 @@ import type { RouteRecordRaw } from "vue-router"; /** - * 流程中心路由(概览 §9.4)。菜单本地路由不接 UserBase app_module(独立登录态应用), - * modId 为本应用内部约定(FlowBaseController.MENUS 同源维护)。 + * 流程中心路由。菜单自 2026-09-15 起改由 UserBase app_module 下发(与 Notice/svc-hall/事项库一致, + * 层级经 BoaModule.children 承载),本表仍是路由的唯一来源,两处需保持对齐: + * ① path 必须与 app_module.path 逐字一致(layout 优先按 path 匹配菜单高亮,modId 仅兜底); + * ② meta.modId = 对应 app_module.custom_id(后端 FlowBaseController 取 custom_id 作 modId)。 + * 数据/授权维护见 UserBase 侧「模块管理」与 flow-center接入UserBase菜单.sql。 * 办理页 /task/:taskId 为 UserMsg jumpPath 落地页(不挂菜单)。 */ const routes: RouteRecordRaw[] = [