From 1740a52cda3c08c07951042e5bed3555a9b1007f Mon Sep 17 00:00:00 2001 From: canglan Date: Sun, 16 Aug 2026 21:27:46 +0800 Subject: [PATCH] fix: install page blank - init() early return skipped route registration --- public/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/app.js b/public/js/app.js index 757d1a9..544e945 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -19,7 +19,7 @@ const App = { document.getElementById('site-title').textContent = window.__SITE_NAME__; document.getElementById('sidebar-title').textContent = window.__SITE_NAME__ || '举报系统'; } - try { const s = await API.get('/install/status'); if (!s.installed) { location.hash = '#/install'; return; } } catch { location.hash = '#/install'; return; } + try { const s = await API.get('/install/status'); if (!s.installed) location.hash = '#/install'; } catch { location.hash = '#/install'; } this._footerLoaded = false; window.addEventListener('hashchange', () => this.route()); window.onerror = (msg, url, line, col, err) => {