refactor: unify frontend source; sync latest UI changes and update project completion report

This commit is contained in:
lt
2026-05-01 07:32:55 +08:00
parent cfb60d7aae
commit 94295e1f74
4 changed files with 77 additions and 172 deletions
+1 -10
View File
@@ -30,7 +30,6 @@
.content-area { padding: 16px; padding-bottom: 80px; }
}
.user-card-list { display: none; }
/* users.html 移动端优化 */
@media (max-width: 768px) {
.user-table { display: none; }
@@ -205,15 +204,7 @@
.catch(() => {});
},
handleLogout() { localStorage.removeItem('authToken'); window.location.href = '/'; },
redirectToPage(page) {
if (!page) return;
// 处理绝对URL或相对路径
if (page.startsWith('/') || page.startsWith('http://') || page.startsWith('https://')) {
window.location.href = page;
} else {
window.location.href = '/' + page;
}
},
redirectToPage(page) { window.location.href = '/' + page; },
formatDate(dateStr) { if (!dateStr) return '-'; return new Date(dateStr.replace(' ', 'T')).toLocaleString('zh-CN', { year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit' }); }
},
mounted() {