!6 DictTag,text为null时无法进行toString操作

Merge pull request !6 from Yang/master_old
pull/7/head
xingyu 2023-05-04 08:12:14 +00:00 committed by Gitee
commit 3ed4174aad
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ export const useRender = {
*/
renderDict: (text, type, dictType?) => {
if (type) {
return h(DictTag, { type: type, value: text, dictType: dictType || 'number' })
return h(DictTag, { type: type, value: text || '', dictType: dictType || 'number' })
}
return ''
},