fix(pl): 拆分小程序运输证件页签权限,并让证书齐备列表避开证件类型路由。

页签按独立菜单显示,销售办证员默认不含证书齐备;证书齐备接口先于通配证件路径注册,避免 plans 被当成证件类型。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wuzilongandCursor committed 2026-11-07 12:19:28 +08:00
1 parent af79aa50a2
commit 66bad6b219
8 files changed
+171 -20

No files matched your search

+4
View File
@@ -20,6 +20,10 @@ export function filterWorkbenchModules(modules, auth) {
const nextMenus = menus.filter((item) => {
if (!item || item.enabled === false) return false
if (menuAll) return true
const anyPerms = Array.isArray(item.anyPerms) ? item.anyPerms : []
if (anyPerms.length) {
return anyPerms.some((perm) => codeSet.has(String(perm || '').trim()))
}
const p = item.perms
if (!p) return false
return codeSet.has(String(p))