mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
修改echarts图标数据显示为0的情况。
This commit is contained in:
@@ -339,7 +339,7 @@
|
||||
tarValue = data[i].value;
|
||||
}
|
||||
}
|
||||
let p =Math.round((tarValue/total)*100)+'%';
|
||||
let p =total!= 0?Math.round((tarValue/total)*100)+'%':0 +'%';
|
||||
return ` ${p} ${name}`
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user