Many methods on the Internet can't work, nonsense, just solve it perfectly like this
<el-date-picker
style="width:400px;"
v-model="formData.answers.time"
@input="daterangeChange"
value-format="yyyy-MM-dd HH:mm:ss"
type="datetimerange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
daterangeChange(e) {
let _this = this
_this.$nextTick(() => {
_this.$forceUpdate()
})
},