From 6012a6cf9f40c554bd2851a77b170a622657b18f Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw <67260074+fit2cloud-chenyw@users.noreply.github.com> Date: Wed, 18 Dec 2024 14:03:56 +0800 Subject: [PATCH] fix: datas should be dataList (#7402) --- frontend/src/components/v-charts/components/Line.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/v-charts/components/Line.vue b/frontend/src/components/v-charts/components/Line.vue index 5ee19443a..72a43d7a6 100644 --- a/frontend/src/components/v-charts/components/Line.vue +++ b/frontend/src/components/v-charts/components/Line.vue @@ -149,11 +149,11 @@ function initChart() { z: 1, tooltip: props.option.tooltip || { trigger: 'axis', - formatter: function (datas: any) { - let res = datas[0].name + '
'; + formatter: function (dataList: any) { + let res = dataList[0].name + '
'; switch (props.option.formatStr) { case 'KB/s': - for (const item of datas) { + for (const item of dataList) { res += item.marker + ' ' + @@ -164,7 +164,7 @@ function initChart() { } break; case 'KB': - for (const item of datas) { + for (const item of dataList) { res += item.marker + ' ' + @@ -175,7 +175,7 @@ function initChart() { } break; case 'MB': - for (const item of datas) { + for (const item of dataList) { res += item.marker + ' ' + @@ -186,7 +186,7 @@ function initChart() { } break; default: - for (const item of datas) { + for (const item of dataList) { res += item.marker + ' ' +