From 297ecefe424b970d7a1ae36c43f9f00d1c30b2ac Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Sun, 24 Mar 2024 13:48:22 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E6=94=B9=E7=94=A8=E7=94=B5?= =?UTF-8?q?=E9=87=8F=E6=9C=80=E5=A4=A7=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/content/usedEle/UsedEle.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/content/usedEle/UsedEle.vue b/src/components/content/usedEle/UsedEle.vue index 59aad37..f0a02f1 100644 --- a/src/components/content/usedEle/UsedEle.vue +++ b/src/components/content/usedEle/UsedEle.vue @@ -236,14 +236,14 @@ const setValueA = () => { if (electricityConsumptionMonthly.value === 0 || length.value === null) { valueA.value.style.height = `0px`; } - let width = (electricityConsumptionMonthly.value * length.value?.offsetHeight) / 100000; + let width = (electricityConsumptionMonthly.value * length.value?.offsetHeight) / 200000; valueA.value.style.height = `${width}px`; } const setValueB = () => { if (monthlySavings.value === 0 || length.value === null) { valueB.value.style.height = `0px`; } - let width = (monthlySavings.value * length.value?.offsetHeight) / 100000; + let width = (monthlySavings.value * length.value?.offsetHeight) / 200000; valueB.value.style.height = `${width}px`; } const getBasicData = (data) => {