forked from Gitlink/forgeplus-react
issue-优化
This commit is contained in:
parent
3eaf1dc214
commit
07511efbd6
|
@ -167,8 +167,8 @@ class MergeForm extends Component {
|
||||||
this.setState({
|
this.setState({
|
||||||
isSpin: false,
|
isSpin: false,
|
||||||
});
|
});
|
||||||
const { pull_request_id } = result.data;
|
const { pull_request_number } = result.data;
|
||||||
this.props.history.push(`/${owner}/${projectsId}/pulls/${pull_request_id}`);
|
this.props.history.push(`/${owner}/${projectsId}/pulls/${pull_request_number}`);
|
||||||
const { getDetail } = this.props;
|
const { getDetail } = this.props;
|
||||||
getDetail && getDetail();
|
getDetail && getDetail();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -9,6 +9,7 @@ import Pie from '../Echart/Pie';
|
||||||
import Cloud from '../Echart/Cloud';
|
import Cloud from '../Echart/Cloud';
|
||||||
import Radar from '../Echart/Radar';
|
import Radar from '../Echart/Radar';
|
||||||
import Round from '../Echart/Round';
|
import Round from '../Echart/Round';
|
||||||
|
import Nodata from '../../Nodata';
|
||||||
import { DatePicker } from 'antd';
|
import { DatePicker } from 'antd';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
|
|
||||||
|
@ -120,7 +121,7 @@ function Index(props) {
|
||||||
}
|
}
|
||||||
}).then(result=>{
|
}).then(result=>{
|
||||||
if(result && result.data){
|
if(result && result.data){
|
||||||
setCloudData(result.data);
|
setCloudData({categories:[]});
|
||||||
}
|
}
|
||||||
}).catch(error=>{})
|
}).catch(error=>{})
|
||||||
}
|
}
|
||||||
|
@ -148,7 +149,7 @@ function Index(props) {
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
percentData &&
|
percentData && percentData.length >0 &&
|
||||||
<div className="pBox">
|
<div className="pBox">
|
||||||
<div className="progress">
|
<div className="progress">
|
||||||
{
|
{
|
||||||
|
@ -200,7 +201,12 @@ function Index(props) {
|
||||||
</FlexAJ>
|
</FlexAJ>
|
||||||
<div className="echartBox">
|
<div className="echartBox">
|
||||||
<p>展示你擅长、关注、感兴趣的专业范围,通过你参与项目、收藏项目、关注项目、复刻项目等数据来统计。</p>
|
<p>展示你擅长、关注、感兴趣的专业范围,通过你参与项目、收藏项目、关注项目、复刻项目等数据来统计。</p>
|
||||||
<Cloud data={cloudData}/>
|
{
|
||||||
|
cloudData && cloudData.length >0?
|
||||||
|
<Cloud data={cloudData}/>
|
||||||
|
:
|
||||||
|
<Nodata _html="暂无数据" small={true}/>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue