|
@@ -114,7 +114,7 @@ export default { |
|
|
} else if (type === 'today') { |
|
|
} else if (type === 'today') { |
|
|
const e = { |
|
|
const e = { |
|
|
start: moment() |
|
|
start: moment() |
|
|
.subtract(1, 'day') |
|
|
|
|
|
|
|
|
.subtract(0, 'day') |
|
|
.format('YYYY-MM-DD 00:00:00'), |
|
|
.format('YYYY-MM-DD 00:00:00'), |
|
|
end: todayEnd |
|
|
end: todayEnd |
|
|
} |
|
|
} |
|
@@ -123,7 +123,7 @@ export default { |
|
|
} else if (type === '7d') { |
|
|
} else if (type === '7d') { |
|
|
const e = { |
|
|
const e = { |
|
|
start: moment() |
|
|
start: moment() |
|
|
.subtract(7, 'days') |
|
|
|
|
|
|
|
|
.subtract(6, 'days') |
|
|
.format('YYYY-MM-DD 00:00:00'), |
|
|
.format('YYYY-MM-DD 00:00:00'), |
|
|
end: todayEnd |
|
|
end: todayEnd |
|
|
} |
|
|
} |
|
|