fix: incorrect repeat of calendar (#1131)
This commit is contained in:
parent
1d2c4f6188
commit
d25276a23b
@ -84,8 +84,8 @@ const useEvents = (dataSource: any, fieldNames: any, date: Date, view: typeof We
|
|||||||
startDate.startOf('week');
|
startDate.startOf('week');
|
||||||
endDate.endOf('week');
|
endDate.endOf('week');
|
||||||
}
|
}
|
||||||
const push = (eventStart: moment.Moment = start) => {
|
const push = (eventStart: moment.Moment = start.clone()) => {
|
||||||
// 必须在这个月的开始时间和结束时间,切在日程的开始时间之后
|
// 必须在这个月的开始时间和结束时间,且在日程的开始时间之后
|
||||||
if (eventStart.isBefore(start) || !eventStart.isBetween(startDate, endDate)) {
|
if (eventStart.isBefore(start) || !eventStart.isBetween(startDate, endDate)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user