上代码
<el-date-picker
value-format="YYYY-MM-DD"
v-model="form.visitDate"
type="date"
@change="dateSearch"
placeholder="预约日期"
/>
设置默认值为明天
const start1 = new Date();
start1.setTime(start1.getTime() + 3600 * 1000 * 24);
const form = ref({
visitDate: formatDate(start1, "yyyy-MM-dd"),
});