From 20c972a9f0a3abfc260b37c080c40a15d6ebeba6 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 10 四月 2025 16:28:19 +0800 Subject: [PATCH] Merge branch 'master' of ssh://114.215.109.124:29418/underway-vue --- src/components/monitor/FactorLegend.vue | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/monitor/FactorLegend.vue b/src/components/monitor/FactorLegend.vue index b87e4ce..bcd447d 100644 --- a/src/components/monitor/FactorLegend.vue +++ b/src/components/monitor/FactorLegend.vue @@ -128,11 +128,12 @@ ', ' + color[3] + ')'; + const { scale = 1, unit = '' } = factorUnit[name]; legendList.push({ color: bgColor, - min: r[0], - max: nextR ? nextR[0] : undefined, - unit: factorUnit[name] ? factorUnit[name].unit : '' + min: r[0] * scale, + max: nextR ? nextR[0] * scale : undefined, + unit: unit }); } -- Gitblit v1.9.3