feat(platform): clarify missing source role
This commit is contained in:
@@ -49,6 +49,9 @@ function formatSeconds(value?: number) {
|
||||
function sourceServiceRole(source: VehicleSourceStatus, primaryProtocol?: string) {
|
||||
if (source.protocol === primaryProtocol) return { label: '主来源', color: 'blue' as const };
|
||||
if (source.online) return { label: '在线证据', color: 'green' as const };
|
||||
if (!source.lastSeen && !source.hasRealtime && !source.hasHistory && !source.hasRaw && !source.hasMileage) {
|
||||
return { label: '暂无来源', color: 'grey' as const };
|
||||
}
|
||||
return { label: '离线证据', color: 'grey' as const };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user