From 1b69992ac6d9bc60de12ea5a7d2f9145e14b7a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Wed, 22 Nov 2023 17:32:24 +0800 Subject: [PATCH] =?UTF-8?q?tag=E7=BB=84=E4=BB=B6=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E6=A1=86=E5=9B=9E=E6=98=BE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DictTag/src/DictTag.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DictTag/src/DictTag.vue b/src/components/DictTag/src/DictTag.vue index b4d096efb..eda462c7e 100644 --- a/src/components/DictTag/src/DictTag.vue +++ b/src/components/DictTag/src/DictTag.vue @@ -58,7 +58,7 @@ export default defineComponent({ getDictObj(props.type, props.value.toString()) // 添加标签的文字颜色为白色,解决自定义背景颜色时标签文字看不清的问题 // 根据 dictDataList 进行区分 是否多个 - if (!dictDataList) { + if (dictDataList.length == 0) { return (