Browse Source

fix #649 browserHistory error

pull/669/head
jim 8 years ago
parent
commit
6f2782083b
  1. 1
      .webpackrc
  2. 3
      src/index.js

1
.webpackrc

@ -16,6 +16,7 @@
"html": {
"template": "./src/index.ejs"
},
"publicPath": "/",
"disableDynamicImport": true,
"hash": true
}

3
src/index.js

@ -1,6 +1,9 @@
import '@babel/polyfill';
import dva from 'dva';
import createHistory from 'history/createHashHistory';
// user BrowserHistory
// import createHistory from 'history/createBrowserHistory';
import createLoading from 'dva-loading';
import 'moment/locale/zh-cn';
import FastClick from 'fastclick';

Loading…
Cancel
Save