patch
Build and publish Docker images / Test, build and publish (push) Successful in 14m6s

This commit is contained in:
2026-07-21 19:40:48 +08:00 Unverified
parent ca675d3226
commit 207d75696b
8 changed files with 125 additions and 81 deletions
+4 -1
View File
@@ -75,6 +75,9 @@ function requireLogin() {
state.permissions = [];
state.scopeLabel = '';
state.pageData = null;
state.resultExamFilter = '';
state.resultSubjectFilter = '';
state.resultExamCatalog = null;
state.authNotice = '登录状态已失效,请重新登录。';
navigate('login');
}
@@ -300,7 +303,7 @@ document.addEventListener('click', async event => {
}
if (action === 'logout') {
await api('/api/auth/logout', { method: 'POST' });
state.user = null; state.profile = null; state.pageData = null; state.permissions = []; state.scopeLabel = '';
state.user = null; state.profile = null; state.pageData = null; state.permissions = []; state.scopeLabel = ''; state.resultExamFilter = ''; state.resultSubjectFilter = ''; state.resultExamCatalog = null;
await refreshPublic(); navigate('home'); toast('已安全退出', '期待下次见面'); return;
}
if (action === 'open-notice') {