From c03d59b542afb3c916b2c33af90ed2876e4e4e2e Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 15 Dec 2017 10:04:46 +0800 Subject: [PATCH] use require to fix dist error --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 72440e8b..71f460ec 100644 --- a/src/index.js +++ b/src/index.js @@ -18,7 +18,7 @@ const app = dva({ app.model(require('./models/global')); // 4. Router -app.router(import('./router')); +app.router(require('./router')); // 5. Start app.start('#root'); -- GitLab