Quellcode durchsuchen

fix #649 browserHistory error

jim vor 8 Jahren
Ursprung
Commit
6f2782083b
2 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 1 0
      .webpackrc
  2. 3 0
      src/index.js

+ 1 - 0
.webpackrc

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

+ 3 - 0
src/index.js

@@ -1,6 +1,9 @@
 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';