We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adbf92c commit b20729dCopy full SHA for b20729d
src/redux/store/syncHistoryWithStore.js
@@ -2,11 +2,12 @@
2
// 同步 history 配置
3
// ========================================================
4
import { useRouterHistory } from 'react-router'
5
-import createBrowserHistory from 'history/lib/createBrowserHistory'
+import createHashHistory from 'history/lib/createHashHistory'
6
import { routerMiddleware, syncHistoryWithStore } from 'react-router-redux'
7
8
-const browserHistory = useRouterHistory(createBrowserHistory)({
9
- basename: '' // 相当于 rootPath
+const browserHistory = useRouterHistory(createHashHistory)({
+ basename: '', // 相当于 rootPath
10
+ queryKey: false // 去除随机标识符
11
})
12
13
export const historyMiddleware = routerMiddleware(browserHistory)
0 commit comments