forked from github/dataease
Merge pull request #11278 from dataease/pr@dev-v2_st
fix(查询组件): 时间过滤规则设置默认值失败
This commit is contained in:
commit
f27a22a99b
@ -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 = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user