Skip to content

Commit

Permalink
fix: calculate the algorithm for the display month
Browse files Browse the repository at this point in the history
  • Loading branch information
cuixiaorui committed Aug 15, 2024
1 parent e90176f commit c5eb4b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/client/composables/user/calendarGraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c5eb4b1

Please sign in to comment.