From 646e7e599ff005a612e3c28e205eb6f4ebd5ed40 Mon Sep 17 00:00:00 2001 From: huangdeliang Date: Tue, 22 Jun 2021 15:59:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9A=82=E5=81=9C=E6=97=A5?= =?UTF-8?q?=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stdiet-ui/src/views/custom/recipesShow/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdiet-ui/src/views/custom/recipesShow/index.vue b/stdiet-ui/src/views/custom/recipesShow/index.vue index 939ab35ea..0863a9657 100644 --- a/stdiet-ui/src/views/custom/recipesShow/index.vue +++ b/stdiet-ui/src/views/custom/recipesShow/index.vue @@ -89,13 +89,13 @@ export default { if (planPauseRes.code === 200) { this.pauseDays = planPauseRes.data.reduce((arr, cur) => { let startDate = cur.pauseStartDate; - while (dayjs(startDate) < dayjs(cur.pauseEndDate)) { + while (dayjs(startDate) <= dayjs(cur.pauseEndDate)) { arr.push(startDate); startDate = dayjs(startDate).add(1, "days").format("YYYY-MM-DD"); } return arr; }, []); - // console.log(this.pauseDays); + console.log(this.pauseDays); } const plansRes = await getRecipesPlans(this.id);