chore: 同步监控服务与前端卡片更新
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user