|
@@ -244,7 +244,7 @@ export default {
|
|
|
//时间戳处理,val=1是默认开始时间(当前月第一天),val=2是默认结束时间(今天)
|
|
|
var date = new Date();
|
|
|
var year = date.getFullYear(),
|
|
|
- month = date.getMonth() + 1,
|
|
|
+ month = date.getMonth(),
|
|
|
day = date.getDate() - 1;
|
|
|
month >= 1 && month <= 9 ? (month = "0" + month) : "";
|
|
|
day >= 0 && day <= 9 ? (day = "0" + day) : "";
|