forked from github/dataease
fix: 日期组件包含当日
This commit is contained in:
parent
1a1a992d52
commit
c7e5c0e96e
@ -26,7 +26,8 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleChange(val) {
|
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) : ''])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user