修复报错页面

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
@@ -21,6 +21,7 @@ export function createAdminViews(context) {
icons,
api,
renderError,
requireLogin,
emptyState,
brand,
portalShell,
@@ -30,7 +31,7 @@ export function createAdminViews(context) {
} = context;
async function renderAdmin(page) {
if (state.user?.role !== 'admin') return navigate('login');
if (state.user?.role !== 'admin') return requireLogin();
app.classList.add('admin-readable');
const meta = {
dashboard: ['考务工作台', '掌握当前报名、审核和发布任务。'], candidates: ['考生资料审核', '核验考生实名、学籍与联系信息。'],