Compatible with a calculation result of 0

This commit is contained in:
JM 2019-09-24 16:29:51 +08:00
parent e533c55536
commit a7aa6278c8
1 changed files with 1 additions and 1 deletions

View File

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