diff --git a/pages/user/History/index.vue b/pages/user/History/index.vue index 1697e24..99343b1 100644 --- a/pages/user/History/index.vue +++ b/pages/user/History/index.vue @@ -105,7 +105,7 @@ export default { const dayOfWeek = now.getDay() // 当前日 const numDate = now.getDate() - const numDaysToMonday = dayOfWeek ? dayOfWeek - 1 : 6 + const numDaysToMonday = dayOfWeek - 1 > -1 ? dayOfWeek : 0 // 得到本周周一的日期 const monday = new Date(now)