From bf945910353813ed47f70e1e6a1c7da965834d82 Mon Sep 17 00:00:00 2001 From: zhongzm Date: Fri, 15 Nov 2024 14:31:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=9B=BE=E8=A1=A8=E7=94=9F=E6=88=90?= =?UTF-8?q?=E6=97=B6=E5=BA=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/perfManage/kpiOverView/index.vue | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/views/perfManage/kpiOverView/index.vue b/src/views/perfManage/kpiOverView/index.vue index 8f9e65f6..7fb8fc72 100644 --- a/src/views/perfManage/kpiOverView/index.vue +++ b/src/views/perfManage/kpiOverView/index.vue @@ -261,15 +261,6 @@ const updateChart = () => { }, tooltip: { trigger: 'axis', - formatter: function (params: any[]) { - const time = params[0].axisValue; - let result = `${time}
`; - params.forEach(param => { - const value = param.value === 0 ? '0' : param.value; - result += `${param.marker}${param.seriesName}: ${value}
`; - }); - return result; - } }, legend: { data: selectedKPIs.value.map(kpiId => @@ -365,8 +356,8 @@ onMounted(async () => { chart = echarts.init(container); if (kpiColumns.value.length > 0) { - updateChart(); await fetchChartData(); + updateChart(); } else { console.warn('No KPI columns available after fetching'); }