formatDate(date) {
return `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()}`;
},
onConfirmStart(date) {
this.showDateStart = false;
this.startDate = this.formatDate(date);
},
获取年注意是${date.getFullYear()} ,不是getYear