mirror of
https://github.com/dataease/dataease.git
synced 2026-06-10 05:36:54 +08:00
fix(查询组件): 设置查询组件默认值时间范围清空默认值异常
This commit is contained in:
@@ -146,6 +146,10 @@ watch(
|
||||
)
|
||||
|
||||
const handleValueChange = () => {
|
||||
if (selectValue.value === null) {
|
||||
selectValue.value = multiple.value ? [] : undefined
|
||||
}
|
||||
|
||||
selectValue.value = Array.isArray(selectValue.value)
|
||||
? selectValue.value.map(ele => ele && dayjs(ele).format('YYYY/MM/DD HH:mm:ss'))
|
||||
: selectValue.value && dayjs(selectValue.value).format('YYYY/MM/DD HH:mm:ss')
|
||||
|
||||
Reference in New Issue
Block a user