Explorar o código

Fixed default BrowserHistory demo

nikogu %!s(int64=8) %!d(string=hai) anos
pai
achega
2c9da749b2
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/index.js

+ 2 - 2
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