mirror of
https://github.com/usememos/memos.git
synced 2024-11-11 07:24:18 +03:00
fix: route confusion entering from non-home page (#430)
This commit is contained in:
parent
e53f5fdd29
commit
a313a9bb31
@ -3,6 +3,7 @@ import store from "../store";
|
||||
import { setQuery, setPathname, Query, updateStateWithLocation } from "../store/modules/location";
|
||||
|
||||
const updateLocationUrl = (method: "replace" | "push" = "replace") => {
|
||||
store.dispatch(updateStateWithLocation());
|
||||
const { query, pathname, hash } = store.getState().location;
|
||||
let queryString = stringify(query);
|
||||
if (queryString) {
|
||||
|
Loading…
Reference in New Issue
Block a user