diff --git a/apps/web/src/navigation/nav-config.spec.ts b/apps/web/src/navigation/nav-config.spec.ts index d68c751..e146f5d 100644 --- a/apps/web/src/navigation/nav-config.spec.ts +++ b/apps/web/src/navigation/nav-config.spec.ts @@ -67,6 +67,14 @@ describe('导航配置', () => { expect(findActiveNav(NAV_MODULES, '/system/industries')?.item?.label).toBe('行业管理'); }); + it('字典菜单按 A4 口径更名「数据字典」', () => { + const systemItems = NAV_MODULES.find((module) => module.key === 'system')?.items ?? []; + const dictItem = systemItems.find((item) => item.key === 'dicts'); + expect(dictItem?.label).toBe('数据字典'); + expect(dictItem?.permission).toBe('dict:manage'); + expect(findActiveNav(NAV_MODULES, '/system/dicts')?.item?.label).toBe('数据字典'); + }); + it('按路径定位当前模块与菜单', () => { const active = findActiveNav(NAV_MODULES, '/material/quick-review'); expect(active?.module.key).toBe('material'); diff --git a/apps/web/src/navigation/nav-config.ts b/apps/web/src/navigation/nav-config.ts index 68e4088..18eb7ef 100644 --- a/apps/web/src/navigation/nav-config.ts +++ b/apps/web/src/navigation/nav-config.ts @@ -297,11 +297,11 @@ export const NAV_MODULES: readonly NavModule[] = [ }, { key: 'dicts', - label: '字典', + label: '数据字典', path: '/system/dicts', icon: IconDocs, permission: Permission.DICT_MANAGE, - description: '核心字典与业务枚举', + description: '平台枚举、行业词表与编码管理', }, { key: 'audit',