fix: DictTag text为null时 无法进行toString() 导致系统崩溃
parent
cf1d3d30e6
commit
687547ef9a
|
@ -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 ''
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue