src/components/search-option/FYOptionTime.vue
@@ -58,7 +58,20 @@ }, mounted() { if (this.initValue) { this.date = new Date(); switch (this.type) { case RANGE: case RANGE2: this.date = [dayjs().startOf('month').toDate(), dayjs().toDate()]; break; case MONTH: this.date = dayjs().startOf('month').toDate(); break; case DATE: this.date = dayjs().toDate(); break; default: break; } this.handleChange(this.date); } }