1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 02:42:47 +00:00

improve tree loading for Wiki mode (#2842)

This commit is contained in:
杨顺强
2019-01-23 16:25:14 +08:00
committed by Daniel Pan
parent 4b4233ebb9
commit 123a442319
19 changed files with 1386 additions and 601 deletions

View File

@@ -368,7 +368,10 @@ class DirentListItem extends React.Component {
render() {
let { path, dirent } = this.props;
let direntPath = Utils.joinPath(path, dirent.name);
let dirHref = siteRoot + 'library/' + this.props.repoID + '/' + this.props.currentRepoInfo.repo_name + Utils.encodePath(direntPath);
let dirHref = '';
if (this.props.currentRepoInfo) {
dirHref = siteRoot + 'library/' + this.props.repoID + '/' + this.props.currentRepoInfo.repo_name + Utils.encodePath(direntPath);
}
let fileHref = siteRoot + 'lib/' + this.props.repoID + '/file' + Utils.encodePath(direntPath);
let toolTipID = MD5(dirent.name).slice(0, 7);
let tagTitle = '';