Commit 6f278208 authored by jim's avatar jim

fix #649 browserHistory error

parent 5820d950
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
"html": { "html": {
"template": "./src/index.ejs" "template": "./src/index.ejs"
}, },
"publicPath": "/",
"disableDynamicImport": true, "disableDynamicImport": true,
"hash": true "hash": true
} }
import '@babel/polyfill'; import '@babel/polyfill';
import dva from 'dva'; import dva from 'dva';
import createHistory from 'history/createHashHistory'; import createHistory from 'history/createHashHistory';
// user BrowserHistory
// import createHistory from 'history/createBrowserHistory';
import createLoading from 'dva-loading'; import createLoading from 'dva-loading';
import 'moment/locale/zh-cn'; import 'moment/locale/zh-cn';
import FastClick from 'fastclick'; import FastClick from 'fastclick';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment