diff --git a/components/DataView/index.js b/components/DataView/index.js index 53669f88e7ed4ffe8703332eb7c33f0c8080e629..533d862182b2c56b45d04ed67f8924b8ebc4a217 100644 --- a/components/DataView/index.js +++ b/components/DataView/index.js @@ -37,6 +37,9 @@ function reduceDimension(arr) { // userTree/orgTree数据转成{id,name} function formatUser(obj) { let name = obj.label; + if(!name){ + return undefined; + } if (typeof name !== 'string') { name = obj.label.props.children; }