From 2c9da749b24508811cd168dc1eb9fd83325234f7 Mon Sep 17 00:00:00 2001 From: nikogu <644506165@qq.com> Date: Mon, 20 Nov 2017 14:35:57 +0800 Subject: [PATCH] Fixed default BrowserHistory demo --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index fd0de02b..c5eecd8b 100644 --- a/src/index.js +++ b/src/index.js @@ -3,12 +3,12 @@ import 'moment/locale/zh-cn'; import './polyfill'; import './g2'; import './raven'; -// import { browserHistory } from 'dva/router'; +// import browserHistory from 'history/createBrowserHistory'; import './index.less'; // 1. Initialize const app = dva({ - // history: browserHistory, + // history: browserHistory(), }); // 2. Plugins -- GitLab