fix(platform): keep realtime source when opening vehicle

This commit is contained in:
lingniu
2026-07-04 06:25:42 +08:00
parent 857c96734d
commit 9fc6f72b2b
2 changed files with 3 additions and 3 deletions

View File

@@ -147,7 +147,7 @@ export function Realtime({ onOpenVehicle }: { onOpenVehicle: (vin: string, proto
title: '操作',
width: 110,
render: (_: unknown, row: VehicleRealtimeRow) => (
<Button disabled={!canOpenVehicle(row.vin)} onClick={() => onOpenVehicle(row.vin)}></Button>
<Button disabled={!canOpenVehicle(row.vin)} onClick={() => onOpenVehicle(row.vin, row.primaryProtocol)}></Button>
)
}
]}