fix(仪表板): 仪表板查询图表提示异常

This commit is contained in:
dataeaseShu
2025-04-10 09:30:29 +08:00
committed by xuwei-fit2cloud
parent 41c32bd663
commit fd3f1c960e

View File

@@ -146,8 +146,8 @@ watch(
const handleValueChange = () => {
selectValue.value = Array.isArray(selectValue.value)
? selectValue.value.map(ele => dayjs(ele).format('YYYY/MM/DD HH:mm:ss'))
: dayjs(selectValue.value).format('YYYY/MM/DD HH:mm:ss')
? 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')
const value = Array.isArray(selectValue.value) ? [...selectValue.value] : selectValue.value
if (!props.isConfig) {
config.value.selectValue = Array.isArray(selectValue.value)