修复报错页面
This commit is contained in:
@@ -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: ['考生资料审核', '核验考生实名、学籍与联系信息。'],
|
||||
|
||||
Reference in New Issue
Block a user