From 1ac8b4551ecdc6c8c54315092bea38374d407acd Mon Sep 17 00:00:00 2001 From: Jifa Jiang Date: Wed, 22 Nov 2017 18:42:49 +0900 Subject: [PATCH] require -> import (#162) --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index c2c10cc4..ef2552e1 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'); -- GitLab