处理小数值

This commit is contained in:
wenc000 2020-08-12 11:13:03 +08:00
parent b07147e1b3
commit 9d0fddc6b9

View File

@ -111,7 +111,7 @@
min: 0,
max: disk.total,
detail: {formatter: '{value}GB'},
data: [{value: (disk.total - disk.free), name: '磁盘使用'}]
data: [{value: (parseFloat(disk.total) - parseFloat(disk.free)).toFixed(2), name: '磁盘使用'}]
}
]
});