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"),
};
route.children.push(d);
console.log(child);
const tab = {
name: `${child.name}ActiveTabIndex`,
path: `/${child.path}/tab/:activeTabIndex`,

View File

@ -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() || {