element-ui的日期时间选择器与localdatetime类型的转换
设置日期时间选择器的value-format为**“yyyy-MM-dd hh:mm:ss”**,即可实现与后端的localDateTime类型的转换(后端接收类型设置为"yyyy-MM-dd hh:mm:ss")。
<el-date-picker
v-model="example"
value-format="yyyy-MM-dd hh:mm:ss"
type="datetime"
placeholder="选择日期时间">
</el-date-picker>