fix: login broken by sync/async mismatch, register missing home link, top bar contrast

This commit is contained in:
2026-07-12 01:50:17 +08:00
parent a4cee1c186
commit 5bb2df7b52
3 changed files with 10 additions and 6 deletions

View File

@@ -89,7 +89,7 @@ const App = {
const pub = document.getElementById('public-page');
pub.classList.remove('hidden');
const comp = page === 'login' ? LoginPage : page === 'register' ? RegisterPage : page === 'install' ? InstallPage : HomePage;
comp.render().then(html => { pub.innerHTML = html; if (comp.mount) comp.mount(); });
Promise.resolve(comp.render()).then(html => { pub.innerHTML = html; if (comp.mount) comp.mount(); });
},
showLayout() {