File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import { injectMultipleSagas } from '../../store/sagas';
44import { fetchAllDemos } from './modules/demo' ;
55
66export default ( store ) => ( {
7- path : 'demo' ,
87 /* Async getComponent is only invoked when route matches */
98 getComponent ( nextState , cb ) {
109 /* Webpack - use 'require.ensure' to create a split point
Original file line number Diff line number Diff line change @@ -8,12 +8,7 @@ import UserRoute from './User';
88export const createRoutes = ( store ) => ( {
99 path : '/' ,
1010 component : CoreLayout ,
11- onEnter : ( nextState , replace ) => {
12- if ( nextState . location . pathname === '/' ) {
13- return replace ( '/demo' ) ;
14- }
15- } ,
16- indexRoute : Home ,
11+ indexRoute : DemoRoute ( store ) ,
1712 childRoutes : [
1813 DemoRoute ( store ) ,
1914 LoginRoute ( store ) ,
You can’t perform that action at this time.
0 commit comments