分级属性为固定属性时,不查询数据
This commit is contained in:
@@ -109,7 +109,7 @@ const Timeline: React.FC<TimelineProps> = ({
|
|||||||
let nodePromise: Promise<any> | null = null;
|
let nodePromise: Promise<any> | null = null;
|
||||||
let linkPromise: Promise<any> | null = null;
|
let linkPromise: Promise<any> | null = null;
|
||||||
// 检查node缓存
|
// 检查node缓存
|
||||||
if (junctionProperties !== "") {
|
if (junctionProperties !== "" && junctionProperties !== "elevation") {
|
||||||
const nodeCacheKey = `${query_time}_${junctionProperties}_${schemeName}`;
|
const nodeCacheKey = `${query_time}_${junctionProperties}_${schemeName}`;
|
||||||
if (nodeCacheRef.current.has(nodeCacheKey)) {
|
if (nodeCacheRef.current.has(nodeCacheKey)) {
|
||||||
nodeRecords = nodeCacheRef.current.get(nodeCacheKey)!;
|
nodeRecords = nodeCacheRef.current.get(nodeCacheKey)!;
|
||||||
@@ -128,7 +128,7 @@ const Timeline: React.FC<TimelineProps> = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 检查link缓存
|
// 检查link缓存
|
||||||
if (pipeProperties !== "") {
|
if (pipeProperties !== "" && pipeProperties !== "diameter") {
|
||||||
const linkCacheKey = `${query_time}_${pipeProperties}_${schemeName}`;
|
const linkCacheKey = `${query_time}_${pipeProperties}_${schemeName}`;
|
||||||
if (linkCacheRef.current.has(linkCacheKey)) {
|
if (linkCacheRef.current.has(linkCacheKey)) {
|
||||||
linkRecords = linkCacheRef.current.get(linkCacheKey)!;
|
linkRecords = linkCacheRef.current.get(linkCacheKey)!;
|
||||||
|
|||||||
Reference in New Issue
Block a user