fix
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 20s
Docker Build & Deploy / Deploy to Production (push) Successful in 8s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s

This commit is contained in:
SunCheng
2026-02-04 15:31:22 +08:00
parent 28c45e8e77
commit 1a3d0658bb
6 changed files with 295 additions and 174 deletions

View File

@@ -141,7 +141,8 @@ const fetchAllRelevantMonthsData = async (year, month) => {
const needNextMonth = totalCells > (startDayOfWeek + lastDay.getDate())
// 并行加载所有需要的月份数据
const promises = [fetchDailyStats(year, month)]
// JavaScript Date.month 是 0-11但后端 API 期望 1-12
const promises = [fetchDailyStats(year, month + 1)]
if (needPrevMonth) {
const prevMonth = month === 0 ? 11 : month - 1