From 5a1e1848cb86d70ca0631bb174622bc27bed5a60 Mon Sep 17 00:00:00 2001 From: clay <20932067@zju.edu.cn> Date: Fri, 31 May 2024 11:23:34 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E5=AD=97=E5=85=B8=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E6=AD=BB=E5=BE=AA=E7=8E=AFbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Tag.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())