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

modify some code detail

This commit is contained in:
LeoSirius
2019-06-28 11:38:20 +08:00
parent 7c12cc271b
commit b3a382240f

View File

@@ -78,7 +78,7 @@ class App extends Component {
navigateClientUrlToLib = () =>{
if(window.location.hash && window.location.hash.indexOf('common/lib') != -1){
let splitUrlArray = window.location.hash.split('/');
let repoID = splitUrlArray[splitUrlArray.length-2];
let repoID = splitUrlArray[splitUrlArray.length - 2];
let url = siteRoot + 'library/' + repoID + '/';
navigate(url, {repalce: true});
}