Selaa lähdekoodia

Fixed default BrowserHistory demo

nikogu 8 vuotta sitten
vanhempi
commit
2c9da749b2
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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