微调
This commit is contained in:
@@ -138,6 +138,7 @@ const updateDateRange = () => {
|
||||
} else if (timeUnit.value === '周') {
|
||||
startDate.value = getStartOfWeek(today.value)
|
||||
endDate.value = getEndOfWeek(today.value)
|
||||
console.log(endDate.value.toLocaleDateString())
|
||||
} else if (timeUnit.value === '月') {
|
||||
startDate.value = new Date(today.value.getFullYear(), today.value.getMonth(), 1)
|
||||
endDate.value = new Date(today.value.getFullYear(), today.value.getMonth() + 1, 0)
|
||||
|
||||
Reference in New Issue
Block a user