From 3d05f2c10435512f4d0ffac94ec9e3a2ee3ae0bc Mon Sep 17 00:00:00 2001 From: Rieko-wang Date: Sat, 3 Dec 2022 22:28:43 +0800 Subject: [PATCH] .. --- index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index e95a449..c00e454 100644 --- a/index.html +++ b/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); } })