fix: 添加失效的option

This commit is contained in:
dap 2025-01-10 15:10:41 +08:00
parent 8276026b01
commit 7a3c211db7

View File

@ -22,14 +22,15 @@ export const publishStatusOptions = [
label: '已发布', label: '已发布',
value: 1, value: 1,
color: 'success', color: 'success',
enumName: 'Published',
}, },
{ {
label: '未发布', label: '未发布',
value: 0, value: 0,
color: 'error', color: 'warning',
enumName: 'Unpublished',
}, },
] as const; {
label: '失效',
export const PublishStatusEnum = optionsToEnum(publishStatusOptions); value: 9,
color: 'error',
},
];