From 6f2782083b70df3ff955ecc8dbc7d1229bb02fa1 Mon Sep 17 00:00:00 2001 From: jim Date: Thu, 11 Jan 2018 10:27:52 +0800 Subject: [PATCH] fix #649 browserHistory error --- .webpackrc | 1 + src/index.js | 3 +++ 2 files changed, 4 insertions(+) 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'; -- GitLab