mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-09 05:00:30 +08:00
opti: header添加文档
This commit is contained in:
parent
4bfc21d384
commit
df16eecbb9
@ -105,9 +105,11 @@ export default class HeaderCom extends Component {
|
||||
location: PropTypes.object
|
||||
}
|
||||
linkTo = (e) =>{
|
||||
this.props.changeMenuItem(e.key);
|
||||
if(!this.props.login){
|
||||
message.info('请先登录',1);
|
||||
if(e.key != '/doc'){
|
||||
this.props.changeMenuItem(e.key);
|
||||
if(!this.props.login){
|
||||
message.info('请先登录',1);
|
||||
}
|
||||
}
|
||||
}
|
||||
relieveLink = () => {
|
||||
@ -178,6 +180,9 @@ export default class HeaderCom extends Component {
|
||||
<Menu.Item key="/group">
|
||||
<Link to="/group">项目广场</Link>
|
||||
</Menu.Item>
|
||||
<Menu.Item key="/doc">
|
||||
<a target="_blank" href="./doc/index.html">文档</a>
|
||||
</Menu.Item>
|
||||
</Menu>
|
||||
<div className="user-toolbar">
|
||||
{login?
|
||||
|
Loading…
Reference in New Issue
Block a user