feat(platform): include release in vehicle summary
This commit is contained in:
@@ -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}`,
|
||||
|
||||
Reference in New Issue
Block a user