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 !== '')