Browse Source

字典空置校验

hella_online_20240829
zhang_li 4 months ago
parent
commit
c7d29b1b62
  1. 6
      src/components/DictTag/src/DictTag.vue

6
src/components/DictTag/src/DictTag.vue

@ -45,8 +45,8 @@ export default defineComponent({
// //
// dictDataList // dictDataList
if (dictDataList.length == 0) { if (dictDataList.length == 0) {
return ( if(dictData.value?.label !== '' && dictData.value?.label !== undefined){
<ElTag return (<ElTag
style={dictData.value?.cssClass ? 'color: #fff' : ''} style={dictData.value?.cssClass ? 'color: #fff' : ''}
type={dictData.value?.colorType} type={dictData.value?.colorType}
color={ color={
@ -59,6 +59,8 @@ export default defineComponent({
{t(`ts.${dictData.value?.label}`).replace('ts.', '')} {t(`ts.${dictData.value?.label}`).replace('ts.', '')}
</ElTag> </ElTag>
) )
}
} else { } else {
return ( return (
dictDataList.map(item => { dictDataList.map(item => {

Loading…
Cancel
Save