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); } } }