forked from Gitlink/forgeplus-react
数据统计->专业定位不显示数据问题修复
This commit is contained in:
parent
400bd28801
commit
4264c127d9
|
@ -121,7 +121,7 @@ function Index(props) {
|
|||
}
|
||||
}).then(result=>{
|
||||
if(result && result.data){
|
||||
setCloudData({categories:[]});
|
||||
setCloudData(result.data || []);
|
||||
}
|
||||
}).catch(error=>{})
|
||||
}
|
||||
|
@ -202,7 +202,7 @@ function Index(props) {
|
|||
<div className="echartBox">
|
||||
<p>展示你擅长、关注、感兴趣的专业范围,通过你参与项目、收藏项目、关注项目、复刻项目等数据来统计。</p>
|
||||
{
|
||||
cloudData && cloudData.length >0?
|
||||
cloudData && cloudData.categories && cloudData.categories.length > 0?
|
||||
<Cloud data={cloudData}/>
|
||||
:
|
||||
<Nodata _html="暂无数据" small={true}/>
|
||||
|
|
Loading…
Reference in New Issue