fix: 移除调试日志输出

This commit is contained in:
Montia37
2025-09-09 21:47:12 +08:00
parent 02a4624b7d
commit 0d4afd8cd4

View File

@@ -99,7 +99,6 @@ const PingChart = memo(({ node, hours }: PingChartProps) => {
} }
let full = Object.values(grouped).sort((a: any, b: any) => a.time - b.time); let full = Object.values(grouped).sort((a: any, b: any) => a.time - b.time);
console.log("Full :", full);
if (hours !== 0) { if (hours !== 0) {
const task = pingHistory.tasks; const task = pingHistory.tasks;
@@ -228,8 +227,6 @@ const PingChart = memo(({ node, hours }: PingChartProps) => {
}); });
}, [pingHistory?.records, sortedTasks, timeRange]); }, [pingHistory?.records, sortedTasks, timeRange]);
console.log("chartData:", chartData);
return ( return (
<div className="relative space-y-4"> <div className="relative space-y-4">
{loading && ( {loading && (
@@ -456,7 +453,6 @@ const PingChart = memo(({ node, hours }: PingChartProps) => {
height={30} height={30}
stroke="var(--theme-text-muted-color)" stroke="var(--theme-text-muted-color)"
fill="var(--accent-a4)" fill="var(--accent-a4)"
alwaysShowText
tickFormatter={(time) => { tickFormatter={(time) => {
const date = new Date(time); const date = new Date(time);
if (hours === 0) { if (hours === 0) {