fix: 查询组件的动态时间默认值没有随时间推移而自动更新

This commit is contained in:
dataeaseShu 2023-12-20 14:20:50 +08:00
parent c50ef171f3
commit 9199a30cc7

View File

@ -100,12 +100,7 @@ export const searchQuery = (queryComponentList, filter, curComponentId, firstLoa
displayType,
multiple
} = item
if (
timeType === 'dynamic' &&
[1, 7].includes(+displayType) &&
firstLoad &&
!value?.length
) {
if (timeType === 'dynamic' && [1, 7].includes(+displayType) && firstLoad) {
if (+displayType === 1) {
selectValue = getDynamicRange(item)
item.defaultValue = new Date(selectValue[0])