From c110ee7cc5ce9953a065d3805c447cb0a33d5eff Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Mon, 28 Mar 2022 10:03:18 +0800 Subject: [PATCH] update topology --- src/views/dashboard/related/topology/components/Graph.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/dashboard/related/topology/components/Graph.vue b/src/views/dashboard/related/topology/components/Graph.vue index f1f84b38..7ba4139e 100644 --- a/src/views/dashboard/related/topology/components/Graph.vue +++ b/src/views/dashboard/related/topology/components/Graph.vue @@ -153,7 +153,7 @@ async function init() { graph.value = svg.value .append("g") .attr("class", "topo-svg-graph") - .attr("transform", `translate(0, -100)`); + .attr("transform", `translate(-100, -100)`); graph.value.call(tip.value); simulation.value = simulationInit( d3, @@ -532,7 +532,7 @@ watch( () => appStore.durationTime, () => { if (dashboardStore.entity === EntityType[1].value) { - init(); + freshNodes(); } } );