mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-13 05:39:59 +00:00
repair bug (#2701)
This commit is contained in:
@@ -64,8 +64,9 @@ class DirView extends React.Component {
|
|||||||
});
|
});
|
||||||
|
|
||||||
let repoName = repoInfo.repo_name;
|
let repoName = repoInfo.repo_name;
|
||||||
let index = location.indexOf(repoName);
|
let repoID = repoInfo.repo_id;
|
||||||
let path = location.slice(index + repoName.length);
|
let path = location.slice(location.indexOf(repoID) + repoID.length); // get the string after repoID
|
||||||
|
path = path.slice(path.indexOf(repoName) + repoName.length); // get current path
|
||||||
this.setState({path: path});
|
this.setState({path: path});
|
||||||
if (!res.data.lib_need_decrypt) {
|
if (!res.data.lib_need_decrypt) {
|
||||||
this.updateDirentList(path);
|
this.updateDirentList(path);
|
||||||
|
Reference in New Issue
Block a user