Commit 1f9bcf40 authored by 陈明豪's avatar 陈明豪

bug修改

parent 8eefc487
......@@ -88,9 +88,9 @@ export default {
const unit = _this.unit
let percent = 0
if (item.data.value !== '0') {
percent = (item.data.value / _this.sum * 100).toFixed(1)
percent = (item.data.value / _this.sum * 100).toFixed(0)
} else {
percent = percent.toFixed(1)
percent = percent.toFixed(0)
}
return `<div>
${item.data.name}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment