修复食谱展示

This commit is contained in:
huangdeliang
2021-05-19 18:02:12 +08:00
parent 7358117a3b
commit 84e9236208
3 changed files with 17 additions and 6 deletions

View File

@ -104,7 +104,7 @@ export default {
let curPlanId, curMenuId, curDate;
const toDay = dayjs().format("YYYY-MM-DD");
this.planList = plansRes.data.reduce((arr, plan) => {
if (plan.menus) {
if (plan.menus && !!plan.sendFlag) {
let tmpDate = dayjs(plan.startDate).subtract(1, "days");
arr.push({
menus: plan.menus.map((menu) => {