jim 8 роки тому
батько
коміт
6f2782083b
2 змінених файлів з 4 додано та 0 видалено
  1. 1 0
      .webpackrc
  2. 3 0
      src/index.js

+ 1 - 0
.webpackrc

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

+ 3 - 0
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';