style: 格式化后端改造代码

This commit is contained in:
2026-05-11 23:16:59 +08:00
parent cf6f91651d
commit dd4a447dcd
3 changed files with 11 additions and 3 deletions
+5 -1
View File
@@ -238,7 +238,11 @@ function toFleetUnit(item: BatteryInfo, index: number, prediction?: BatteryPredi
const temperature = round1(29.5 + thermalPressure * 2.1 + (item.isLowPower ? 1.4 : 0))
const chargeEfficiency = round1(clamp(91 + item.power / 12 - riskFactors.length * 1.8, 80, 98))
const riskScore = Math.round(
clamp(prediction?.riskScore ?? 18 + riskFactors.length * 10 + thermalPressure * 4 + (item.isLowPower ? 18 : 0), 8, 96),
clamp(
prediction?.riskScore ?? 18 + riskFactors.length * 10 + thermalPressure * 4 + (item.isLowPower ? 18 : 0),
8,
96,
),
)
return {