Commit 1601aefe authored by Jenny's avatar Jenny

fix: 日期组件默认值修改

parent 9e69639a
......@@ -62,8 +62,7 @@ export default {
},
mounted() {
let { date } = this.elementInfo.option.dateTime
if (!date) date = new Date()
this.pickerValue = this.dateTimeFormat(date)
if (date) this.pickerValue = this.dateTimeFormat(date)
},
methods: {
timeConfirm(e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment