forked from Gitlink/forgeplus-react
change header
This commit is contained in:
parent
b70c993b21
commit
7ba94ee094
|
|
@ -100,7 +100,7 @@ export function initAxiosInterceptors(props) {
|
|||
// TODO 读取到package.json中的配置?
|
||||
var proxy = "http://localhost:3000"
|
||||
// proxy = "https://pre-newweb.educoder.net"
|
||||
// proxy = "https://testforgeplus.trustie.net/"
|
||||
proxy = "https://testforgeplus.trustie.net/"
|
||||
|
||||
// 在这里使用requestMap控制,避免用户通过双击等操作发出重复的请求;
|
||||
|
||||
|
|
|
|||
|
|
@ -617,6 +617,8 @@ class NewHeader extends Component {
|
|||
return true
|
||||
} else if (url.startsWith('/statistics') && match.path.startsWith('/statistics')) {
|
||||
return true
|
||||
} else if (url.startsWith('/users') && match.path.startsWith('/users')) {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
|
|
@ -812,6 +814,12 @@ class NewHeader extends Component {
|
|||
)
|
||||
})
|
||||
}
|
||||
{
|
||||
this.props.current_user && this.props.current_user.login &&
|
||||
<li key="projects" onClick={() => this.headtypesonClick(`/users/${this.props.current_user.login}`, true)} className={`${this.matchpaths(`/users/${this.props.current_user.login}`) === true ? 'pr active' : 'pr'}`} style={true ? { display: 'flex' } : { display: 'none' }}>
|
||||
<Link to={`/users/${this.props.current_user.login}`}>项目</Link>
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
</div>
|
||||
: ""
|
||||
|
|
|
|||
Loading…
Reference in New Issue