forked from Gitlink/forgeplus-react
Merge pull request '数据统计->专业定位不显示数据问题修复' (#344) from durian/forgeplus-react:gitlink_server into gitlink_server
This commit is contained in:
commit
ff1e063979
|
@ -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