You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
389 B
14 lines
389 B
|
5 months ago
|
/** 赛事状态:后台展示用中文 */
|
||
|
|
export const COMPETITION_STATUS_LABEL: Record<string, string> = {
|
||
|
|
draft: '草稿',
|
||
|
|
published: '已发布',
|
||
|
|
signup_open: '报名进行中',
|
||
|
|
signup_closed: '报名已截止',
|
||
|
|
reviewing: '评审中',
|
||
|
|
ended: '已结束',
|
||
|
|
}
|
||
|
|
|
||
|
|
export function competitionStatusLabel(code: string): string {
|
||
|
|
return COMPETITION_STATUS_LABEL[code] ?? code
|
||
|
|
}
|