diff --git a/src/components/Tag.vue b/src/components/Tag.vue index 2fcb11d..e50abbd 100644 --- a/src/components/Tag.vue +++ b/src/components/Tag.vue @@ -31,7 +31,7 @@ const props = defineProps({ const tagConfig = ref({}) const filterDict = (data, value) => { - if (!data) return + if (!data || value == null) return if (data instanceof Array) { if (value == true || value == false) { tagConfig.value = data.find(item => item.value == value.toString())