From 2bcc61fdaa9b5d771f3aae3b736c5364eee44491 Mon Sep 17 00:00:00 2001 From: Cxx0822 <1556464090@qq.com> Date: Thu, 13 Nov 2025 10:16:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E8=B0=83=E6=95=B4=E4=BD=93=E9=87=8D?= =?UTF-8?q?=E8=B6=8B=E5=8A=BF=E5=9B=BE=E5=88=BB=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Health/HealthChart.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/Health/HealthChart.vue b/src/components/Health/HealthChart.vue index a0ed59d..c6ca4a2 100644 --- a/src/components/Health/HealthChart.vue +++ b/src/components/Health/HealthChart.vue @@ -60,6 +60,12 @@ const updateChart = () => { const weightXAxis = healthStore.healthRecordList.map((item) => item.date).reverse() const weightYAxis = healthStore.healthRecordList.map((item) => item.weight).reverse() weightDailyChart.setOption(lineChartOptions('日期', weightXAxis, '体重(千克)', weightYAxis)) + weightDailyChart.setOption({ + yAxis: { + min: 60, + max: 90 + } + }) // 运动量统计图 const sportRecordList = healthStore.healthRecordList.filter((item) => item.sportProject !== '')