Config UI: use auto unit for energy and power (#32754)
This commit is contained in:
parent
29b0eabeed
commit
3e2e0fa806
3 changed files with 4 additions and 4 deletions
|
|
@ -211,12 +211,12 @@ export default {
|
|||
case "dimLimit":
|
||||
case "curtailLimit":
|
||||
case "exportLimit":
|
||||
return this.fmtW(value);
|
||||
return this.fmtW(value, POWER_UNIT.AUTO);
|
||||
case "energy":
|
||||
case "returnEnergy":
|
||||
case "capacity":
|
||||
case "chargedEnergy":
|
||||
return this.fmtWh(value * 1e3);
|
||||
return this.fmtWh(value * 1e3, POWER_UNIT.AUTO);
|
||||
case "soc":
|
||||
case "vehicleLimitSoc":
|
||||
return this.fmtPercentage(value, 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue