处理小数值
This commit is contained in:
parent
b07147e1b3
commit
9d0fddc6b9
@ -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: '磁盘使用'}]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user