diff --git a/.webpackrc b/.webpackrc index f47c4b72..ab704dc9 100755 --- a/.webpackrc +++ b/.webpackrc @@ -16,6 +16,7 @@ "html": { "template": "./src/index.ejs" }, + "publicPath": "/", "disableDynamicImport": true, "hash": true } diff --git a/src/index.js b/src/index.js index 6da92a1c..f909e597 100644 --- a/src/index.js +++ b/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';