From 863d62fd88679b4f5220fc6253fe5ad5b35ec48c Mon Sep 17 00:00:00 2001 From: openclaw Date: Sun, 26 Jul 2026 16:21:54 +0800 Subject: [PATCH] fix: initialize stats calendar year from range --- apps/web/src/views/StatsView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/views/StatsView.vue b/apps/web/src/views/StatsView.vue index dbabaab..9fe3149 100644 --- a/apps/web/src/views/StatsView.vue +++ b/apps/web/src/views/StatsView.vue @@ -183,7 +183,7 @@ watch([rangeMode, selectedMonth, selectedYear, customStart, customEnd], () => { if (!bounds) return; calendarCursorMonth.value = `${bounds.start.getFullYear()}-${String(bounds.start.getMonth() + 1).padStart(2, "0")}`; calendarCursorYear.value = bounds.start.getFullYear(); -}); +}, { immediate: true }); const dailyStats = computed(() => { const groups = new Map();