no message

This commit is contained in:
小陌 2024-01-15 00:08:01 +08:00
parent 70778495e1
commit 961fa94be0

View File

@ -89,8 +89,9 @@ export default {
getMonthDates() { getMonthDates() {
const currentDate = new Date(); const currentDate = new Date();
const year = currentDate.getFullYear(); const year = currentDate.getFullYear();
const day = currentDate.getDate();
const month = currentDate.getMonth() + 1; // JavaScript 0 1 const month = currentDate.getMonth() + 1; // JavaScript 0 1
const startOfMonth = new Date(year, month - 1, 1); const startOfMonth = new Date(year, month - 2, day);
const endOfMonth = new Date(year, month, 0, 23, 59, 59); // const endOfMonth = new Date(year, month, 0, 23, 59, 59); //
const startDate = this.formatDate(startOfMonth); const startDate = this.formatDate(startOfMonth);
const endDate = this.formatDate(endOfMonth); const endDate = this.formatDate(endOfMonth);