Browse Source

Fixed default BrowserHistory demo

nikogu 8 năm trước cách đây
mục cha
commit
2c9da749b2
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/index.js

+ 2 - 2
src/index.js

@@ -3,12 +3,12 @@ import 'moment/locale/zh-cn';
 import './polyfill';
 import './polyfill';
 import './g2';
 import './g2';
 import './raven';
 import './raven';
-// import { browserHistory } from 'dva/router';
+// import browserHistory from 'history/createBrowserHistory';
 import './index.less';
 import './index.less';
 
 
 // 1. Initialize
 // 1. Initialize
 const app = dva({
 const app = dva({
-  // history: browserHistory,
+  // history: browserHistory(),
 });
 });
 
 
 // 2. Plugins
 // 2. Plugins