diff --git a/frontend/src/views/host/file-management/index.vue b/frontend/src/views/host/file-management/index.vue index 96e77a6cf..550b75025 100644 --- a/frontend/src/views/host/file-management/index.vue +++ b/frontend/src/views/host/file-management/index.vue @@ -1940,18 +1940,18 @@ const checkFFmpeg = () => { const updateHeight = () => { const el = fileTableRef.value; if (!el) return; - let tabHeight = globalStore.openMenuTabs ? 40 : 0; + let tabHeight = globalStore.openMenuTabs ? 40 : -4; const half = (el.offsetHeight + tabHeight) / 2; dropdownMaxHeight.value = Math.max(half, 300); }; onMounted(async () => { + await loadPath(); await nextTick(); watchTitleHeight(); window.addEventListener('resize', watchTitleHeight); updateHeight(); window.addEventListener('resize', updateHeight); - await loadPath(); initShowHidden(); initTabsAndPaths(); await getHostMount();