docs(router): 更新路由表注释——菜单改由 UserBase app_module 下发
build / build (push) Successful in 2m24s

后端 GetUserMod 已不再返回硬编码 MENUS(改为平台下发模块树),本文件头注释仍写着
「菜单不接 app_module、modId 为本应用内部约定(与 FlowBaseController.MENUS 同源)」,
已失效。改为写明两处新的对齐约束:① path 必须与 app_module.path 逐字一致(layout 优先
按 path 匹配高亮,modId 仅兜底);② meta.modId = 对应 app_module.custom_id(后端映射时
modId 取 custom_id)。路由表本身零改动。
This commit is contained in:
chenxing
2026-09-15 18:44:30 +08:00
parent 90db00cf16
commit 2969d235e4
+5 -2
View File
@@ -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[] = [