1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

redirect client's view lib url to library content pages's url

This commit is contained in:
LeoSirius
2019-06-27 17:53:36 +08:00
parent 9185d675bd
commit 5d2421bc68
3 changed files with 15 additions and 1 deletions

View File

@@ -86,7 +86,7 @@ class DirPath extends React.Component {
<span className="path-split">/</span>
</Fragment>
)}
{currentPath === '/' ?
{(currentPath === '/' || currentPath === '') ?
<span>{repoName}</span>:
<a className="path-link" data-path="/" onClick={this.onPathClick}>{repoName}</a>
}