no message
This commit is contained in:
parent
70778495e1
commit
961fa94be0
@ -89,8 +89,9 @@ export default {
|
||||
getMonthDates() {
|
||||
const currentDate = new Date();
|
||||
const year = currentDate.getFullYear();
|
||||
const day = currentDate.getDate();
|
||||
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 startDate = this.formatDate(startOfMonth);
|
||||
const endDate = this.formatDate(endOfMonth);
|
||||
|
Loading…
Reference in New Issue
Block a user