fix: DictTag text为null时 无法进行toString() 导致系统崩溃

pull/6/head
yangjiang 2023-05-04 16:00:15 +08:00
parent cf1d3d30e6
commit 687547ef9a
1 changed files with 1 additions and 1 deletions

View File

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