diff --git a/src/index.js b/src/index.js index c2c10cc4370e720a267c5f957a5504d30bfcc9b5..ef2552e1eb6c8026e54ff9d9d4bda48aa38df8ab 100644 --- a/src/index.js +++ b/src/index.js @@ -5,6 +5,7 @@ import './g2'; import './rollbar'; // import browserHistory from 'history/createBrowserHistory'; import './index.less'; +import router from './router'; // 1. Initialize const app = dva({ @@ -18,7 +19,7 @@ const app = dva({ app.model(require('./models/global')); // 4. Router -app.router(require('./router')); +app.router(router); // 5. Start app.start('#root');