fix: initialize stats calendar year from range

This commit is contained in:
openclaw 2026-07-26 16:21:54 +08:00
parent 180ba7e17e
commit 863d62fd88
1 changed files with 1 additions and 1 deletions

View File

@ -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<string, LedgerEntry[]>();