Rieko-wang 2 years ago
parent
commit
3d05f2c104
  1. 10
      index.html

10
index.html

@ -167,11 +167,11 @@
result?.map(item => {
if (moment(item.time).isAfter(nearlyWeekS)) {
nearlyWeek.unshift(item);
}
if (moment(item.time).isAfter(nearlyWeekS)) {
nearlyMonth.unshift(item);
}
if (moment(item.time).isAfter(lastThreeMonthsS)) {
} else if (moment(item.time).isAfter(nearlyWeekS)) {
nearlyMonth = [...nearlyWeek];
nearlyWeek.unshift(item);
} if (moment(item.time).isAfter(lastThreeMonthsS)) {
lastThreeMonths = [...nearlyWeekS]
lastThreeMonths.unshift(item);
}
})

Loading…
Cancel
Save