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

repair file view bug

This commit is contained in:
shanshuirenjia
2018-12-14 21:52:54 +08:00
parent 853659cdc6
commit d7564bcbba
6 changed files with 9 additions and 9 deletions

View File

@@ -300,7 +300,7 @@ class Wiki extends Component {
this.showFile(node.path);
}
} else {
let url = siteRoot + 'lib/' + item.repo_id + '/file' + item.path;
let url = siteRoot + 'lib/' + item.repo_id + '/file' + Utils.encodePath(item.path);
let newWindow = window.open('about:blank');
newWindow.location.href = url;
}
@@ -333,7 +333,7 @@ class Wiki extends Component {
this.showDir(node.path);
} else {
const w=window.open('about:blank');
const url = siteRoot + 'lib/' + repoID + '/file' + node.path;
const url = siteRoot + 'lib/' + repoID + '/file' + Utils.encodePath(node.path);
w.location.href = url;
}
}