Skip to content

Commit

Permalink
fix(projects): fix vertical-mix menu when collapse
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Nov 16, 2023
1 parent 68e0d19 commit c4e6471
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/layouts/modules/global-menu/base-menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ const menuTheme = computed(() => (props.darkTheme ? 'dark' : 'light'));
const isHorizontal = computed(() => props.mode === 'horizontal');
const inlineCollapsed = computed(() => (props.mode === 'inline' ? appStore.siderCollapse : undefined));
const siderCollapse = computed(() => themeStore.layout.mode === 'vertical' && appStore.siderCollapse);
const inlineCollapsed = computed(() => (props.mode === 'inline' ? siderCollapse.value : undefined));
const selectedKeys = computed(() => {
const { hideInMenu, activeMenu } = route.meta;
Expand All @@ -46,7 +48,7 @@ const selectedKeys = computed(() => {
});
const openKeys = computed(() => {
if (isHorizontal.value || appStore.siderCollapse) return [];
if (isHorizontal.value || inlineCollapsed.value) return [];
const [selectedKey] = selectedKeys.value;
Expand Down

0 comments on commit c4e6471

Please sign in to comment.