fix: update topology

This commit is contained in:
Fine 2023-11-26 11:38:39 +08:00
parent c5047d1b5b
commit 5205499bda
2 changed files with 3 additions and 2 deletions

View File

@ -50,7 +50,6 @@ function layerDashboards() {
component: () => import("@/views/Layer.vue"), component: () => import("@/views/Layer.vue"),
}; };
route.children.push(d); route.children.push(d);
console.log(child);
const tab = { const tab = {
name: `${child.name}ActiveTabIndex`, name: `${child.name}ActiveTabIndex`,
path: `/${child.path}/tab/:activeTabIndex`, path: `/${child.path}/tab/:activeTabIndex`,

View File

@ -189,7 +189,9 @@ limitations under the License. -->
onMounted(async () => { onMounted(async () => {
await nextTick(); await nextTick();
setTimeout(() => {
init(); init();
}, 10);
}); });
async function init() { async function init() {
const dom = document.querySelector(".topology")?.getBoundingClientRect() || { const dom = document.querySelector(".topology")?.getBoundingClientRect() || {