This commit is contained in:
Your Name
2026-05-14 16:23:52 +08:00
@@ -683,7 +683,7 @@ const bloodTrendOption = computed(() => ({
name: '空腹血糖',
type: 'line',
smooth: true,
connectNulls: false,
connectNulls: true,
data: bloodTrendSeries.value.fasting,
symbolSize: 7,
itemStyle: {
@@ -698,7 +698,7 @@ const bloodTrendOption = computed(() => ({
name: '餐后血糖',
type: 'line',
smooth: true,
connectNulls: false,
connectNulls: true,
data: bloodTrendSeries.value.postprandial,
symbolSize: 7,
itemStyle: {
@@ -719,7 +719,8 @@ function formatColumnDate(date: string) {
function parseTrendNumber(value: unknown): number | null {
if (value === '' || value == null) return null
const parsed = Number(value)
return Number.isFinite(parsed) ? parsed : null
if (!Number.isFinite(parsed) || parsed === 0) return null
return parsed
}
function getCell(metric: string, date: string): { value: string; isHigh: boolean; hasRecord: boolean } {