refactor(web): 侧栏「字典」更名为「数据字典」
背景:进入 A4 数据字典与系统配置阶段,产品口径统一为「数据字典」。\n改动:nav-config 菜单 label 与 description;补充 nav-config 单测。\n影响面:仅管理中心侧栏文案;路由 /system/dicts 与权限 dict:manage 不变。\n回滚:回滚本提交即可。\n验证:nav-config 单测 10/10;web lint / typecheck / 全量单测 126 通过;prettier 通过。
This commit is contained in:
1 parent
50afaee49c
commit
32b44bdeec
2 files changed
+10
-2
No files matched your search
@@ -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');
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user