🎈 perf:el-tag传入空字符串type导致警告

pull/495/head
preschool 2024-08-13 17:15:38 +08:00
parent 1a4c717584
commit 5a21c0e8ca
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ export default defineComponent({
//
<ElTag
style={dict?.cssClass ? 'color: #fff' : ''}
type={dict?.colorType}
type={dict?.colorType || null}
color={dict?.cssClass && isHexColor(dict?.cssClass) ? dict?.cssClass : ''}
disableTransitions={true}
>