From c5eb4b19a916b1d82bf94d85b06a3a796f23a080 Mon Sep 17 00:00:00 2001 From: cuixiaorui Date: Thu, 15 Aug 2024 09:05:55 +0800 Subject: [PATCH] fix: calculate the algorithm for the display month --- apps/client/composables/user/calendarGraph.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/client/composables/user/calendarGraph.ts b/apps/client/composables/user/calendarGraph.ts index f66088da..18d7a551 100644 --- a/apps/client/composables/user/calendarGraph.ts +++ b/apps/client/composables/user/calendarGraph.ts @@ -196,6 +196,8 @@ export function useCalendarGraph(emits: EmitsType, config: CalendarConfig) { if (offset < 3) { preTH.month = -1; theadLen = 13; + } else if (offset === 3) { + theadLen = 13; } thead.push(preTH); }