fix(查询组件): 移动端日期范围组件查询异常 #11756

This commit is contained in:
dataeaseShu 2024-09-02 16:08:51 +08:00
parent 26eb8d820d
commit b9b95f6c62

View File

@ -364,13 +364,13 @@ const setArrValue = () => {
const [start, end] = selectValue.value || []
if (selectSecond.value) {
selectValue.value = [
start,
start ? start : new Date(`${currentDate.value.join('/')} ${currentTime.value.join(':')}`),
new Date(`${currentDate.value.join('/')} ${currentTime.value.join(':')}`)
]
} else {
selectValue.value = [
new Date(`${currentDate.value.join('/')} ${currentTime.value.join(':')}`),
end
end ? end : new Date(`${currentDate.value.join('/')} ${currentTime.value.join(':')}`)
]
}
} else {