优化数据刷新间隔

This commit is contained in:
CN-JS-HuiBai
2026-04-10 15:18:48 +08:00
parent f1a215d504
commit cf1842f4e5

View File

@@ -758,6 +758,16 @@
if (resp.ok) { if (resp.ok) {
updateUserUI(data.username); updateUserUI(data.username);
closeLoginModal(); closeLoginModal();
// Refresh data sources list for the filter dropdown
loadSourceCount();
// Refresh site settings (logo, filings, theme, etc.)
loadSiteSettings();
// Refresh dashboard data
fetchMetrics(true);
fetchNetworkHistory(true);
} else { } else {
dom.loginError.textContent = data.error || '登录失败'; dom.loginError.textContent = data.error || '登录失败';
dom.loginError.style.display = 'block'; dom.loginError.style.display = 'block';