Commit 724858f2 by CaIon

fix: 修复数据看板渲染错误

parent fe148d17
......@@ -76,7 +76,7 @@ const Detail = (props) => {
content: [
{
key: datum => datum['Model'],
value: datum => renderQuotaNumberWithDigit(datum['Usage'], 4)
value: datum => renderQuotaNumberWithDigit(parseFloat(datum['Usage']), 4)
}
]
},
......@@ -92,7 +92,7 @@ const Detail = (props) => {
array.sort((a, b) => b.value - a.value);
// add $
for (let i = 0; i < array.length; i++) {
array[i].value = renderQuotaNumberWithDigit(array[i].value, 4);
array[i].value = renderQuotaNumberWithDigit(parseFloat(array[i].value), 4);
}
return array;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment