1.设置默认日期为当前日期
<el-form-item prop="borrowDate">
<el-date-picker
type="date"
placeholder="选择日期"
:disabled="disabledS"
v-model="formList.borrowDate"
:picker-options="expireTimeOption"
style="width: 100%"
></el-date-picker>
</el-form-item>
</el-descriptions-item>
formList: {
borrowDate: null,//日期
},
created() {
// 设置topAddForm.receiveTime为当前日期
this.formList.borrowDate = new Date().toISOString().substr(0, 10);
}