From 0704672ad37ed51fa3b067cfdf3653010c0056f7 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 21 Jul 2024 10:59:50 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E3=80=91=E5=85=A8=E5=B1=80=EF=BC=9ADictTag=20=E7=9A=84=20`defa?= =?UTF-8?q?ult`=20=E6=83=85=E5=86=B5=E4=B8=8B=EF=BC=8C=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=20`info`=20=E6=9B=BF=E4=BB=A3=EF=BC=8C=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E6=B5=8F=E8=A7=88=E5=99=A8=20warning=20=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DictTag/src/DictTag.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/DictTag/src/DictTag.vue b/src/components/DictTag/src/DictTag.vue index db37f714..1d075a1b 100644 --- a/src/components/DictTag/src/DictTag.vue +++ b/src/components/DictTag/src/DictTag.vue @@ -22,8 +22,8 @@ export default defineComponent({ const dictOptions = getDictOptions(dictType) dictOptions.forEach((dict: DictDataType) => { if (dict.value === value) { - if (dict.colorType + '' === 'primary' || dict.colorType + '' === 'default') { - dict.colorType = '' + if (dict.colorType + '' === 'default') { + dict.colorType = 'info' } dictData.value = dict }