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
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user