From e802b709e0c5d20af5dfe9a78ef418966e314684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=87=95=E9=B9=8F?= Date: Tue, 19 Apr 2022 09:40:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E5=8F=96=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/charts/UpLow.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/charts/UpLow.vue b/src/components/charts/UpLow.vue index 763b34a..e0ac739 100644 --- a/src/components/charts/UpLow.vue +++ b/src/components/charts/UpLow.vue @@ -40,7 +40,7 @@ const init = () => { let maxVal:number = chgFlag ? 5200 : 0 if (!chgFlag) { - maxVal = chgContent.value.map(x => x.limitUpCount + x.limitLowCount).sort((a, b) => b - a).at(0) + maxVal = chgContent.value.map(x => x.limitUpCount + x.limitLowCount).sort((a, b) => a - b).pop() } const myChart = echarts.init(UpLow.value)