Unverified Commit a313a9bb authored by Yunliang Zhou's avatar Yunliang Zhou Committed by GitHub

fix: route confusion entering from non-home page (#430)

parent e53f5fdd
...@@ -3,6 +3,7 @@ import store from "../store"; ...@@ -3,6 +3,7 @@ import store from "../store";
import { setQuery, setPathname, Query, updateStateWithLocation } from "../store/modules/location"; import { setQuery, setPathname, Query, updateStateWithLocation } from "../store/modules/location";
const updateLocationUrl = (method: "replace" | "push" = "replace") => { const updateLocationUrl = (method: "replace" | "push" = "replace") => {
store.dispatch(updateStateWithLocation());
const { query, pathname, hash } = store.getState().location; const { query, pathname, hash } = store.getState().location;
let queryString = stringify(query); let queryString = stringify(query);
if (queryString) { if (queryString) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment