From 77f9100ec4a62adfc4b21762ce311609b29fcd17 Mon Sep 17 00:00:00 2001 From: Fine Date: Mon, 13 Jan 2025 16:30:40 +0800 Subject: [PATCH] fix name --- src/views/alarm/components/Line.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/alarm/components/Line.vue b/src/views/alarm/components/Line.vue index 06111324..989c5f80 100644 --- a/src/views/alarm/components/Line.vue +++ b/src/views/alarm/components/Line.vue @@ -77,7 +77,7 @@ limitations under the License. --> for (const item of metric.values) { series.push({ data: item.values.map((item: number, itemIndex: number) => [props.intervalTime[itemIndex], item]), - name: item.name, + name: item.name || metric.name, type: "line", symbol: "circle", symbolSize: 4, @@ -113,6 +113,7 @@ limitations under the License. --> link: { xAxisIndex: "all" }, }, legend: { + show: grid.length > 1, type: "scroll", icon: "circle", top: -5,