数据统计->专业定位不显示数据问题修复

This commit is contained in:
unknown 2022-03-03 09:53:27 +08:00
parent 400bd28801
commit 4264c127d9
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}/>