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) => {