Commit f2e24088 authored by 陈明豪's avatar 陈明豪

bug修改67915

parent 7bf3286f
......@@ -89,7 +89,12 @@ export default {
trigger: 'item', // 出发方式
formatter: (item) => {
const unit = _this.unit
const percent = (item.data.value / _this.sum * 100).toFixed(0)
let percent = 0
if (item.data.value !== 0) {
percent = (item.data.value / _this.sum * 100).toFixed(0)
} else {
percent = percent.toFixed(0)
}
return `<div>
${item.data.name}
<br>
......
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