fix(移动端): 移动端使用时间过滤组件选中日期后无法清空

This commit is contained in:
dataeaseShu 2025-01-08 17:32:09 +08:00 committed by Junjun
parent ff4b8224b1
commit 605d3bca05

View File

@ -408,8 +408,10 @@ const setArrValue = () => {
const onClear = () => {
showDate.value = false
selectValue.value = []
currentTime.value = []
const { displayType } = config.value
const plus = displayType === '7'
config.value.selectValue = plus ? [] : undefined
selectValue.value = plus ? [] : undefined
handleValueChange()
}