chore: 同步监控服务与前端卡片更新

This commit is contained in:
2026-06-24 21:58:49 +08:00
parent aff88ba97d
commit 8e59464cbc
4 changed files with 16 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
import { useState, useMemo } from 'react';
import { formatLatency, formatUptime, formatTime, getStatusColor, getUptimeColor, getLatencyColor } from '../hooks/useMonitor';
const HISTORY_DAYS = 90;
const HISTORY_DAYS = 30;
const INTRANET_FALLBACK_ICON =
'https://api.iconify.design/mdi/lan-connect.svg?color=%23059669';
@@ -75,7 +75,7 @@ export default function WebsiteCard({ website, onRefresh, onEdit, onDelete, read
return { text: '服务异常', color: 'text-red-500' };
})();
const uptime90d = website.uptime_90d;
const uptime90d = website.uptime_30d;
const hasUptimeData = uptime90d != null && uptime90d > 0;
return (