1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 03:11:07 +00:00

repair dir&file link bug (#2741)

This commit is contained in:
杨顺强
2019-01-02 11:52:44 +08:00
committed by Daniel Pan
parent be2f32d8e7
commit 9129d2ecd5
2 changed files with 9 additions and 3 deletions

View File

@@ -152,7 +152,12 @@ class Item extends Component {
return (
<tr onMouseOver={this.handleMouseOver} onMouseOut={this.handleMouseOut}>
<td><img src={iconUrl} width="24" /></td>
<td><Link to={linkUrl}>{item.obj_name}</Link></td>
<td>
{item.is_dir ?
<Link to={linkUrl}>{item.obj_name}</Link> :
<a href={linkUrl} target="_blank">{item.obj_name}</a>
}
</td>
<td><Link to={`${siteRoot}library/${item.repo_id}/${item.repo_name}/`}>{item.repo_name}</Link></td>
<td>{item.view_cnt}</td>
<td>{this.renderExpriedData()}</td>