feat(platform): show release in topbar

This commit is contained in:
lingniu
2026-07-04 15:37:48 +08:00
parent ff36cb4bd1
commit d72da88c3f
3 changed files with 19 additions and 3 deletions

View File

@@ -36,6 +36,7 @@ function linkHealthClassName(count: number | null) {
export function AppShell({
activePage,
linkIssueCount,
platformRelease,
currentVehicleStatus,
currentVehicleLabel,
currentVehicleConsistency,
@@ -45,6 +46,7 @@ export function AppShell({
}: {
activePage: PageKey;
linkIssueCount: number | null;
platformRelease?: string;
currentVehicleStatus?: VehicleServiceStatus;
currentVehicleLabel?: string;
currentVehicleConsistency?: VehicleSourceConsistency;
@@ -107,6 +109,7 @@ export function AppShell({
</Tag>
) : null}
<Tag color="blue"></Tag>
{platformRelease ? <Tag color="blue"> {platformRelease}</Tag> : null}
<Tag color="grey"> / </Tag>
<Tag color={amapConfigured ? 'green' : 'orange'}>{amapConfigured ? '地图就绪' : '地图待配置'}</Tag>
<Button size="small" aria-label="顶部实时监控" onClick={() => onChange('realtime')}></Button>