mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: route confusion entering from non-home page (#430)
This commit is contained in:
@ -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) {
|
||||||
|
Reference in New Issue
Block a user