commit
31f576e59f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user