完善内容类型与发布状态中文展示
This commit is contained in:
@@ -343,6 +343,19 @@ assertIncludes(
|
||||
"unknownValueLabel: '未知对账渠道'",
|
||||
'财务对账渠道必须使用中文枚举并保留未知值提示',
|
||||
);
|
||||
for (const contentContract of [
|
||||
"{ label: '公告', value: 'notice' }",
|
||||
"{ label: '协议', value: 'agreement' }",
|
||||
"{ label: '草稿', value: 'draft' }",
|
||||
"{ label: '已发布', value: 'published' }",
|
||||
"unknownValueLabel: '未知发布状态'",
|
||||
]) {
|
||||
assertIncludes(
|
||||
resources,
|
||||
contentContract,
|
||||
`内容管理缺少中文枚举契约:${contentContract}`,
|
||||
);
|
||||
}
|
||||
assertIncludes(
|
||||
detailPage,
|
||||
'!hasResourceFieldLabel(props.definition, actualKey)',
|
||||
|
||||
Reference in New Issue
Block a user