fix(仪表板): 过滤条件为枚举时,选择固定值后,再通过手动输入相同值,已添加的固定值显示重复

This commit is contained in:
dataeaseShu 2024-06-20 10:55:28 +08:00
parent 8ded983c32
commit e76b9e8122

View File

@ -227,7 +227,7 @@ const addFields = () => {
return pre
}, new Set([]))
if (list.size) {
checklist.value = [...checklist.value, ...Array.from(list)]
checklist.value = [...new Set([...checklist.value, ...Array.from(list)])]
}
showTextArea.value = false
}