From 428d247fe40b5b5d41727d86745d283de39b137d Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 2 Feb 2024 10:12:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=9C=8B=E6=9D=BF=E6=8B=93=E6=89=91?= =?UTF-8?q?=E8=BE=B9=E5=8A=A8=E7=94=BB=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/overview/hooks/useTopology.ts | 6 +++--- src/views/monitor/topologyArchitecture/index.vue | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/dashboard/overview/hooks/useTopology.ts b/src/views/dashboard/overview/hooks/useTopology.ts index 63a5ffd4..b165fb83 100644 --- a/src/views/dashboard/overview/hooks/useTopology.ts +++ b/src/views/dashboard/overview/hooks/useTopology.ts @@ -143,15 +143,15 @@ export function neStateParse(neType: string, data: Record) { // 设置状态 graphG6.value.setItemState( edge.id, - 'line-dash', + 'circle-move', neS.neState.online && neT.neState.online ); } if (neS && notNeNodes.includes(edgeTarget)) { - graphG6.value.setItemState(edge.id, 'line-path', neS.neState.online); + graphG6.value.setItemState(edge.id, 'line-dash', neS.neState.online); } if (neT && notNeNodes.includes(edgeSource)) { - graphG6.value.setItemState(edge.id, 'line-path', neT.neState.online); + graphG6.value.setItemState(edge.id, 'line-dash', neT.neState.online); } } diff --git a/src/views/monitor/topologyArchitecture/index.vue b/src/views/monitor/topologyArchitecture/index.vue index 3ff3a6dc..63561efc 100644 --- a/src/views/monitor/topologyArchitecture/index.vue +++ b/src/views/monitor/topologyArchitecture/index.vue @@ -445,15 +445,15 @@ function wsMessage(res: Record) { // 设置状态 graphG6.value.setItemState( edge.id, - 'line-dash', + 'circle-move', neS.neState.online && neT.neState.online ); } if (neS && notNeNodes.includes(edgeTarget)) { - graphG6.value.setItemState(edge.id, 'line-path', neS.neState.online); + graphG6.value.setItemState(edge.id, 'line-dash', neS.neState.online); } if (neT && notNeNodes.includes(edgeSource)) { - graphG6.value.setItemState(edge.id, 'line-path', neT.neState.online); + graphG6.value.setItemState(edge.id, 'line-dash', neT.neState.online); } } }