Rieko-wang 2 years ago
parent
commit
7f7b9a0fb7
  1. 8
      index.html

8
index.html

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

Loading…
Cancel
Save