mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-14 06:11:16 +00:00
modify some code detail
This commit is contained in:
@@ -78,7 +78,7 @@ class App extends Component {
|
|||||||
navigateClientUrlToLib = () =>{
|
navigateClientUrlToLib = () =>{
|
||||||
if(window.location.hash && window.location.hash.indexOf('common/lib') != -1){
|
if(window.location.hash && window.location.hash.indexOf('common/lib') != -1){
|
||||||
let splitUrlArray = window.location.hash.split('/');
|
let splitUrlArray = window.location.hash.split('/');
|
||||||
let repoID = splitUrlArray[splitUrlArray.length-2];
|
let repoID = splitUrlArray[splitUrlArray.length - 2];
|
||||||
let url = siteRoot + 'library/' + repoID + '/';
|
let url = siteRoot + 'library/' + repoID + '/';
|
||||||
navigate(url, {repalce: true});
|
navigate(url, {repalce: true});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user