首页:保留一位小数
This commit is contained in:
parent
8c767b4aaa
commit
b8a88ea9d9
@ -150,19 +150,19 @@ const StatusListData = () => {
|
||||
item.attributeMap.iwindspeed !== undefined
|
||||
? item.attributeMap.iwindspeed % 1 === 0
|
||||
? item.attributeMap.iwindspeed
|
||||
: item.attributeMap.iwindspeed.toFixed(2)
|
||||
: item.attributeMap.iwindspeed.toFixed(1)
|
||||
: '--'
|
||||
item.attributeMap.igenpower =
|
||||
item.attributeMap.igenpower !== undefined
|
||||
? item.attributeMap.igenpower % 1 === 0
|
||||
? item.attributeMap.igenpower
|
||||
: item.attributeMap.igenpower.toFixed(2)
|
||||
: item.attributeMap.igenpower.toFixed(1)
|
||||
: '--'
|
||||
item.attributeMap.ikwhthisday =
|
||||
item.attributeMap.ikwhthisday !== undefined
|
||||
? item.attributeMap.ikwhthisday % 1 === 0
|
||||
? item.attributeMap.ikwhthisday
|
||||
: item.attributeMap.ikwhthisday.toFixed(2)
|
||||
: item.attributeMap.ikwhthisday.toFixed(1)
|
||||
: '--'
|
||||
// 初始化计数器和累加器
|
||||
if (index === 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user