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

change index page

This commit is contained in:
ilearnit
2018-12-10 10:19:29 +00:00
parent 494c011c53
commit 005f257397
2 changed files with 4 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ class App extends Component {
draftCounts: 0,
draftList:[],
isLoadingDraft: true,
currentTab: 'dashboard',
currentTab: '/',
};
this.currentTab = ''; //just for refresh brower
}
@@ -112,9 +112,9 @@ class App extends Component {
return (
<div id="main">
<SidePanel isSidePanelClosed={this.state.isSidePanelClosed} onCloseSidePanel={this.onCloseSidePanel} currentTab={currentTab} tabItemClick={this.tabItemClick} draftCounts={this.state.draftCounts} />
<MainPanel>
<Router>
<MyLibraries path={ siteRoot } onShowSidePanel={this.onShowSidePanel} onSearchedClick={this.onSearchedClick} />
<FilesActivitiesWrapper path={siteRoot + 'dashboard'} onShowSidePanel={this.onShowSidePanel} onSearchedClick={this.onSearchedClick} />
<DraftsViewWrapper path={siteRoot + 'drafts'}
currentTab={currentTab}