Bug Fixes: parseInt precision lost

This commit is contained in:
JM 2020-01-16 10:21:58 +08:00
parent 6467bd516f
commit 81b8bef8e1
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ export default {
const sum = value.reduce((all, v) => all + v, 0) const sum = value.reduce((all, v) => all + v, 0)
const percent = parseInt(value[activeIndex] / sum * 100) || 0 const percent = parseFloat(value[activeIndex] / sum * 100) || 0
return { return {
content: '{nt}%', content: '{nt}%',