删除调试信息
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user