(type: string | undefined | null)
| 65 | * @param type - Backend data-type key (e.g. "DATA_SLICE"). |
| 66 | */ |
| 67 | export function labelDataType(type: string | undefined | null): string { |
| 68 | if (!type) return '未知'; |
| 69 | return DATA_TYPE_LABELS[type] || type; |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * Return the human-readable label for a transmission status. |