diff --git a/.webpackrc b/.webpackrc index f47c4b7292b3c85a3ca03de1115f9fc00696ecfc..ab704dc9efc1361ca4318bd641a0bcd90dfae1f3 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 6da92a1c968117e29aaf675c7d1c49e56eb2fe9a..f909e5977c54bf77907328a5e6ae9756e495a414 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';