修复BUG(服务监控): 修复使用率百分比丢失精度问题;

pull/20/head
xt12321 2021-04-27 00:58:19 +08:00
parent 665895f477
commit 2b9774083d
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@ export default {
// 使 // 使
ringRate() { ringRate() {
let ringRate = this.currentInstrumentBoardData.rate let ringRate = this.currentInstrumentBoardData.rate
return ringRate < 1 ? ringRate * 100 : ringRate ringRate = ringRate < 1 ? ringRate * 100 : ringRate
return parseFloat(ringRate.toFixed(4))
}, },
// id // id
ringGraphId() { ringGraphId() {