Merge pull request '数据统计->专业定位不显示数据问题修复' (#344) from durian/forgeplus-react:gitlink_server into gitlink_server

This commit is contained in:
xxq250 2022-03-03 11:43:53 +08:00
commit ff1e063979
1 changed files with 2 additions and 2 deletions

View File

@ -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}/>