ZaiZai 11 tháng trước cách đây
mục cha
commit
c2c61c97ea
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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}`
                         },
                     }