fix(查询组件): 时间过滤规则设置默认值失败

This commit is contained in:
dataeaseShu 2024-07-31 09:27:19 +08:00
parent c6ac91e316
commit 10866020b6

View File

@ -135,7 +135,9 @@ const handleValueChange = () => {
})
return
}
config.value.defaultValue = value.map(ele => new Date(ele).toLocaleString())
config.value.defaultValue = Array.isArray(value)
? value.map(ele => new Date(ele).toLocaleString())
: new Date(value).toLocaleString()
}
const init = () => {