@@ -440,6 +440,13 @@ function drawPie(type) {
chartDom.value = document.getElementById("pie");
myChart.value = echarts.init(chartDom.value);
}
+ if (
+ indexData.value.finshDiscTons == 0 &&
+ indexData.value.unfinshDiscTons == 0
+ ) {
+ myChart.value.clear();
+ return;
+ }
let option;