diff --git a/src/router/layer.ts b/src/router/layer.ts index 5348c5dc..8dbf67c0 100644 --- a/src/router/layer.ts +++ b/src/router/layer.ts @@ -50,7 +50,6 @@ function layerDashboards() { component: () => import("@/views/Layer.vue"), }; route.children.push(d); - console.log(child); const tab = { name: `${child.name}ActiveTabIndex`, path: `/${child.path}/tab/:activeTabIndex`, diff --git a/src/views/dashboard/related/topology/components/Graph.vue b/src/views/dashboard/related/topology/components/Graph.vue index 29aa7322..7330aefd 100644 --- a/src/views/dashboard/related/topology/components/Graph.vue +++ b/src/views/dashboard/related/topology/components/Graph.vue @@ -189,7 +189,9 @@ limitations under the License. --> onMounted(async () => { await nextTick(); - init(); + setTimeout(() => { + init(); + }, 10); }); async function init() { const dom = document.querySelector(".topology")?.getBoundingClientRect() || {