dayjs 绑定Vue时间控件时传值问题
<el-date-picker v-model="finishDate" type="date"></el-date-picker>
return {
finishDate: dayjs().format('YYYY-MM-DD'),
}
async Func() {
call({
date: this.finishDate.ToString(),--不转传的值是datetime类型
}).then((res) => {
let { message, code } = res.data
this.$baseMessage(message, code === 0 ? 'success' : 'error')
})
},