ZaiZai 11 달 전
부모
커밋
c2c61c97ea
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/home/components/classify.vue

+ 1 - 1
src/views/home/components/classify.vue

@@ -46,7 +46,7 @@ const setClassifyChartsOption = (data) => {
                     item.label = {
                         color: colors[index],
                         formatter(param) {
-                            const percent = ' (' + param.percent * 2 + '%)'
+                            const percent = ' (' + param.percent.toFixed(2) + '%)'
                             return `${item.name}${percent}\n${item.value}`
                         },
                     }