diff --git a/src/components/DictTag/src/DictTag.vue b/src/components/DictTag/src/DictTag.vue
index 35920d91e..947f5037f 100644
--- a/src/components/DictTag/src/DictTag.vue
+++ b/src/components/DictTag/src/DictTag.vue
@@ -45,20 +45,22 @@ export default defineComponent({
// 添加标签的文字颜色为白色,解决自定义背景颜色时标签文字看不清的问题
// 根据 dictDataList 进行区分 是否多个
if (dictDataList.length == 0) {
- return (
-
- {t(`ts.${dictData.value?.label}`).replace('ts.', '')}
-
- )
+ if(dictData.value?.label !== '' && dictData.value?.label !== undefined){
+ return (
+ {t(`ts.${dictData.value?.label}`).replace('ts.', '')}
+
+ )
+ }
+
} else {
return (
dictDataList.map(item => {