fix: 日期组件包含当日

This commit is contained in:
dataeaseShu 2022-11-28 17:21:40 +08:00
parent 1a1a992d52
commit c7e5c0e96e

View File

@ -26,7 +26,8 @@ export default {
},
methods: {
handleChange(val) {
this.$emit('input', val)
const [ pre, next ] = val
this.$emit('input', [pre, next ? new Date(+new Date(next) + (23 * 3600 + 59 * 61) * 1000) : ''])
}
}
}