fix: 修复我的关注页面跳转projectid传递错误的bug

This commit is contained in:
wenbo.dong 2017-08-24 21:53:49 +08:00
parent 9651011762
commit 5318293a55
2 changed files with 2 additions and 2 deletions

View File

@ -67,9 +67,10 @@ class ProjectCard extends Component {
render() {
const { projectData, inFollowPage } = this.props;
console.log(projectData);
return (
<div className="card-container">
<Card bordered={false} className="m-card" onClick={() => this.props.history.push('/project/' + projectData._id)}>
<Card bordered={false} className="m-card" onClick={() => this.props.history.push('/project/' + (projectData.projectid || projectData._id))}>
<Icon type={projectData.icon || 'star-o'} className="ui-logo" style={{ backgroundColor: constants.PROJECT_COLOR[projectData.color] || constants.PROJECT_COLOR.blue }} />
<h4 className="ui-title">{projectData.name || projectData.projectname}</h4>
</Card>

View File

@ -33,7 +33,6 @@ class Follows extends Component {
}
receiveRes = () => {
console.log('receive res!');
this.props.getFollowList(this.props.uid).then((res) => {
console.log(res);
if (res.payload.data.errcode === 0) {