diff --git a/src/layouts/default/tabs/index.vue b/src/layouts/default/tabs/index.vue index b3d0648..fe24674 100644 --- a/src/layouts/default/tabs/index.vue +++ b/src/layouts/default/tabs/index.vue @@ -56,6 +56,13 @@ const getWrapClass = computed(() => { ] }) +const getShowTabs = computed(() => { + const { path, meta } = router.currentRoute.value + if (meta?.hideTab) + return false + return path !== '/interface' && path !== '/run/interface' +}) + listenerRouteChange((route) => { const { name } = route if (name === REDIRECT_NAME || !route || !userStore.getAccessToken) @@ -94,7 +101,7 @@ function handleEdit(targetKey: string) {