|
@@ -384,7 +384,7 @@
|
|
const now = new Date()
|
|
const now = new Date()
|
|
const year = now.getFullYear(); // 年
|
|
const year = now.getFullYear(); // 年
|
|
const month = now.getMonth() + 1; // 月
|
|
const month = now.getMonth() + 1; // 月
|
|
- const monthBetter = month > 10 ? month : '0' + month
|
|
|
|
|
|
+ const monthBetter = month >= 10 ? month : '0' + month
|
|
const beginDate = `${year}-01`
|
|
const beginDate = `${year}-01`
|
|
const endDate = `${year}-${monthBetter}`
|
|
const endDate = `${year}-${monthBetter}`
|
|
this.dateValue = [beginDate, endDate]
|
|
this.dateValue = [beginDate, endDate]
|