fix(ui): honor governance tab deep links on mobile
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 19s
CD Pipeline / build-and-deploy (push) Successful in 7m42s
CD Pipeline / post-deploy-checks (push) Successful in 1m1s

This commit is contained in:
Your Name
2026-06-29 14:30:10 +08:00
parent 552d149b50
commit 57c1df19fc

View File

@@ -72,6 +72,9 @@ export default function GovernancePage({
setRequestedTab(tab)
if (!tab) return
if (window.location.hash !== `#${tab}`) {
window.history.replaceState(null, '', `${window.location.pathname}${window.location.search}#${tab}`)
}
let cancelled = false
const scrollToRequestedSection = () => {
if (cancelled) return