web修复

This commit is contained in:
Alex Yang
2025-11-24 01:58:34 +08:00
parent 85320611cb
commit 63442c2b2a
5 changed files with 95 additions and 12 deletions

View File

@@ -103,12 +103,12 @@ function loadInitialData() {
// 更新统计卡片数据
function updateStatCards(stats) {
const statElements = {
'blocked-count': stats.blocked || 0,
'allowed-count': stats.allowed || 0,
'error-count': stats.error || 0,
'total-queries': stats.totalQueries || 0,
'rules-count': stats.rulesCount || 0,
'hosts-count': stats.hostsCount || 0
'blocked-count': stats.Blocked || 0,
'allowed-count': stats.Allowed || 0,
'error-count': stats.Errors || 0,
'total-queries': stats.Queries || 0,
'rules-count': 0,
'hosts-count': 0
};
for (const [id, value] of Object.entries(statElements)) {