Merge pull request #11908 from dataease/pr@dev-v2_st

fix(查询组件): 移动端日期范围组件查询异常 #11756
This commit is contained in:
dataeaseShu 2024-09-02 16:14:34 +08:00 committed by GitHub
commit abaa34b575
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 {