feat(platform): include release in vehicle summary

This commit is contained in:
lingniu
2026-07-04 16:06:03 +08:00
parent a01a958e60
commit 19f260d94a
3 changed files with 12 additions and 6 deletions

View File

@@ -130,6 +130,7 @@ async function copyText(value: string, label: string) {
export function VehicleDetail({
vin,
protocol,
platformRelease,
onOpenRealtime,
onOpenHistory,
onOpenRaw,
@@ -142,6 +143,7 @@ export function VehicleDetail({
}: {
vin: string;
protocol?: string;
platformRelease?: string;
onOpenRealtime: (vin: string, protocol?: string) => void;
onOpenHistory: (vin: string, protocol?: string) => void;
onOpenRaw: (vin: string, protocol?: string) => void;
@@ -359,6 +361,7 @@ export function VehicleDetail({
const vehicleName = [archivePlate, displayVIN].filter((item) => item && item !== '-').join(' / ') || displayLookupKey;
const lines = [
'【车辆服务诊断摘要】',
...(platformRelease?.trim() ? [`运行版本:${platformRelease.trim()}`] : []),
`车辆:${vehicleName}`,
`查询关键词:${reportText(displayLookupKey)}`,
`当前范围:${scopeText}`,