forked from Gitlink/forgeplus-react
增加个人主页和项目的title设置
This commit is contained in:
parent
c2bb54738a
commit
45247e6a03
|
@ -402,7 +402,8 @@ class Detail extends Component {
|
|||
praises_count: result.data.praises_count,
|
||||
forked_count: result.data.forked_count,
|
||||
defaultBranch: result.data.default_branch
|
||||
})
|
||||
});
|
||||
document.title = `${result.data.author.name}/${result.data.name}:${result.data.description}`;
|
||||
}
|
||||
}
|
||||
}).catch((error) => { })
|
||||
|
|
|
@ -147,6 +147,7 @@ class Infos extends Component {
|
|||
});
|
||||
const { pathname } = this.props.location;
|
||||
this.renderPath(pathname,result.data);
|
||||
document.title = result.data.username+'('+ username +')';
|
||||
})
|
||||
.catch((error) => {
|
||||
this.setState({
|
||||
|
|
Loading…
Reference in New Issue