mirror of
https://github.com/fankes/komari-theme-purcarte.git
synced 2025-10-18 19:39:22 +08:00
fix: 移除调试日志输出
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user