删除调试信息

This commit is contained in:
JIANG
2025-10-27 15:31:11 +08:00
parent d7e954aa78
commit 86e7349c85
3 changed files with 9 additions and 12 deletions

View File

@@ -93,7 +93,8 @@ const Timeline: React.FC<TimelineProps> = ({
const fetchFrameData = async (
queryTime: Date,
junctionProperties: string,
pipeProperties: string
pipeProperties: string,
schemeName: string
) => {
const query_time = queryTime.toISOString();
let nodeRecords: any = { results: [] };
@@ -103,7 +104,7 @@ const Timeline: React.FC<TimelineProps> = ({
let linkPromise: Promise<any> | null = null;
// 检查node缓存
if (junctionProperties !== "") {
const nodeCacheKey = `${query_time}_${junctionProperties}`;
const nodeCacheKey = `${query_time}_${junctionProperties}_${schemeName}`;
if (nodeCacheRef.current.has(nodeCacheKey)) {
nodeRecords = nodeCacheRef.current.get(nodeCacheKey)!;
} else {
@@ -135,10 +136,10 @@ const Timeline: React.FC<TimelineProps> = ({
}
}
console.log(
"Query Time:",
queryTime.toLocaleDateString() + " " + queryTime.toLocaleTimeString()
);
// console.log(
// "Query Time:",
// queryTime.toLocaleDateString() + " " + queryTime.toLocaleTimeString()
// );
// 等待所有有效请求
const responses = await Promise.all(requests);
@@ -379,7 +380,8 @@ const Timeline: React.FC<TimelineProps> = ({
fetchFrameData(
currentTimeToDate(selectedDate, currentTime),
junctionText,
pipeText
pipeText,
schemeName
);
}
}, [junctionText, pipeText, currentTime, selectedDate]);