修复报错页面

This commit is contained in:
2026-07-21 17:08:03 +08:00 Unverified
parent fe5fcc9dc2
commit 5477a261f8
10 changed files with 91 additions and 9 deletions
+2 -1
View File
@@ -15,6 +15,7 @@ export function createCandidateViews(context) {
icons,
api,
renderError,
requireLogin,
emptyState,
brand
} = context;
@@ -73,7 +74,7 @@ export function createCandidateViews(context) {
}
async function renderCandidate(page) {
if (state.user?.role !== 'candidate') return navigate('login');
if (state.user?.role !== 'candidate') return requireLogin();
app.classList.remove('admin-readable');
if (state.user.mustChangePassword) {
app.innerHTML = onboardingShell('password', passwordOnboardingForm());