Fix: 足迹日期星期日开始
This commit is contained in:
@@ -105,7 +105,7 @@ export default {
|
|||||||
const dayOfWeek = now.getDay()
|
const dayOfWeek = now.getDay()
|
||||||
// 当前日
|
// 当前日
|
||||||
const numDate = now.getDate()
|
const numDate = now.getDate()
|
||||||
const numDaysToMonday = dayOfWeek ? dayOfWeek - 1 : 6
|
const numDaysToMonday = dayOfWeek - 1 > -1 ? dayOfWeek : 0
|
||||||
|
|
||||||
// 得到本周周一的日期
|
// 得到本周周一的日期
|
||||||
const monday = new Date(now)
|
const monday = new Date(now)
|
||||||
|
|||||||
Reference in New Issue
Block a user