fix(platform): keep quality source when opening vehicle

This commit is contained in:
lingniu
2026-07-04 06:30:27 +08:00
parent 9fc6f72b2b
commit 2997009ac2
2 changed files with 100 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ export function Quality({
onFiltersChange,
initialFilters = {}
}: {
onOpenVehicle: (vin: string) => void;
onOpenVehicle: (vin: string, protocol?: string) => void;
onHealthLoaded?: (health: OpsHealth) => void;
onFiltersChange?: (filters: Record<string, string>) => void;
initialFilters?: Record<string, string>;
@@ -239,7 +239,7 @@ export function Quality({
<Space spacing={4}>
<Button size="small" icon={<IconCopy />} onClick={() => copyText(row.phone, '手机号')}></Button>
<Button size="small" icon={<IconCopy />} onClick={() => copyText(row.sourceEndpoint, '来源')}></Button>
<Button size="small" disabled={!lookup.key} onClick={() => onOpenVehicle(lookup.key)}>
<Button size="small" disabled={!lookup.key} onClick={() => onOpenVehicle(lookup.key, row.protocol)}>
{lookup.label}
</Button>
</Space>