fix: navigation back

This commit is contained in:
Tienson Qin
2025-11-23 13:44:26 +08:00
parent 43c79fe834
commit 6d0a8fbe9f
3 changed files with 28 additions and 12 deletions

View File

@@ -37,14 +37,14 @@
(fn [route]
(let [route-name (get-in route [:data :name])
path (-> js/location .-hash (string/replace-first #"^#" ""))]
(prn :debug :route-name route-name :path path)
(route-handler/set-route-match! route)
(mobile-nav/notify-route-change!
{:route {:to route-name
:path-params (:path-params route)
:query-params (:query-params route)}
:path path})
(route-handler/set-route-match! route)
(when (not= route-name :left-sidebar)
(reset! mobile-state/*left-sidebar-open? false)
(bottom-tabs/show!))