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);