diff --git a/src/layouts/modules/global-menu/base-menu.vue b/src/layouts/modules/global-menu/base-menu.vue
index 2c0f6c6db..c3d24f4c5 100644
--- a/src/layouts/modules/global-menu/base-menu.vue
+++ b/src/layouts/modules/global-menu/base-menu.vue
@@ -35,9 +35,7 @@ const isHorizontal = computed(() => props.mode === 'horizontal');
const siderCollapse = computed(() => themeStore.layout.mode === 'vertical' && appStore.siderCollapse);
-const menuHeightStyle = computed(() =>
- isHorizontal.value ? { '--n-item-height': `${themeStore.header.height}px` } : {}
-);
+const headerHeight = computed(() => `${themeStore.header.height}px`);
const selectedKey = computed(() => {
const { hideInMenu, activeMenu } = route.meta;
@@ -83,11 +81,14 @@ watch(
:options="naiveMenus"
:inverted="darkTheme"
:indent="18"
- class="transition-300"
- :style="menuHeightStyle"
+ responsive
@update:value="handleClickMenu"
/>
-
+