|
@ -88,8 +88,10 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
onMount(() => { |
|
|
onMount(() => { |
|
|
if (window.location.pathname === "/profile") |
|
|
if (window.location.pathname === "/profile") { |
|
|
appState = APPSTATE.PROFILE; |
|
|
appState = APPSTATE.PROFILE; |
|
|
|
|
|
history.replaceState({ appState: "/profile" }, "", "/profile"); |
|
|
|
|
|
} |
|
|
else |
|
|
else |
|
|
history.replaceState({ appState: "" }, "", "/"); |
|
|
history.replaceState({ appState: "" }, "", "/"); |
|
|
window.onpopstate = (e: PopStateEvent) => { |
|
|
window.onpopstate = (e: PopStateEvent) => { |
|
|