feat: add navigation status routes and update badge aggregation logic

This commit is contained in:
catlog22
2026-01-04 21:04:28 +08:00
parent 2a13d8b17f
commit 81f4d084b0
7 changed files with 506 additions and 81 deletions

View File

@@ -37,6 +37,11 @@ document.addEventListener('DOMContentLoaded', async () => {
await switchToPath(initialPath);
// Update all navigation badges after initial load
if (typeof updateAllNavigationBadges === 'function') {
updateAllNavigationBadges();
}
// Clean up URL after loading (remove query param)
if (urlPath && window.history.replaceState) {
window.history.replaceState({}, '', window.location.pathname);