xiugai
This commit is contained in:
@@ -132,7 +132,15 @@ export default {
|
||||
// 计算当月第一天00:00:00的时间戳
|
||||
startTime = targetMoment.startOf('month').valueOf();
|
||||
// 计算当月最后一天23:59:59的时间戳
|
||||
endTime = targetMoment.endOf('month').valueOf();
|
||||
endTime = targetMoment.clone()
|
||||
.endOf('month')
|
||||
.set({
|
||||
hour: 23,
|
||||
minute: 59,
|
||||
second: 59,
|
||||
millisecond: 0 // 毫秒设为0
|
||||
})
|
||||
.valueOf();
|
||||
|
||||
// 调试输出
|
||||
console.log('月份时间范围计算结果:', {
|
||||
|
||||
Reference in New Issue
Block a user