Commit c6581875d999791cb7975000cc7eff1f18d193f0

Authored by ww
1 parent 45e5bf1b

fix(动态表单): 日期区间无法清除时间

... ... @@ -54,7 +54,7 @@ const getIntervalTimeOptions = computed(() => {
54 54 })
55 55
56 56 const handleTimePerionChange = (value: number[]) => {
57   - const [startTs, endTs] = value
  57 + const [startTs, endTs] = value || []
58 58 emit('update:value', { ...props.value, startTs, endTs, interval: null })
59 59 emit('change', { ...props.value || {}, startTs, endTs, interval: null })
60 60 }
... ...