Commit afec6c31 by 匡雅琴

百分比保留位数调整回来

1 parent fbf76f8f
...@@ -136,7 +136,7 @@ const deepClone = obj => { ...@@ -136,7 +136,7 @@ const deepClone = obj => {
} }
// 数字转百分数 // 数字转百分数
const toPercent = num => { const toPercent = num => {
let str = Number(num).toFixed(1) let str = Number(num).toFixed(0)
str += '%' str += '%'
return str return str
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!