Fix: 足迹日期星期日开始

This commit is contained in:
modendeveloper
2024-09-17 21:05:01 +08:00
parent cfd333cffa
commit b5e23dda59
+1 -1
View File
@@ -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)