Merge pull request #10399 from dataease/pr@dev-v2_st

fix(仪表板): 过滤条件为枚举时,选择固定值后,再通过手动输入相同值,已添加的固定值显示重复
This commit is contained in:
dataeaseShu 2024-06-20 10:56:13 +08:00 committed by GitHub
commit fa8abdea07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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
}