修复微信报粉导出错误&食谱日期展示

This commit is contained in:
huangdeliang
2021-04-20 18:54:48 +08:00
parent 7358392d89
commit 181c3f57c9
8 changed files with 38 additions and 5 deletions

View File

@ -88,7 +88,7 @@ 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");
}