Skip to content

Commit

Permalink
fix: layout.vue 组件 因 主题sidebar-nav 布局 隐藏 菜单后 转换 为 双列菜单sidebar-mixed-n…
Browse files Browse the repository at this point in the history
…av 找不到主菜单 & Header 宽度计算 空白问题
  • Loading branch information
LanceJiang committed Sep 20, 2024
1 parent b12ff2d commit 91aa59a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/effects/layouts/src/basic/layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,19 @@ watch(
},
);
watch(
() => preferences.app.layout,
async (val) => {
if (val === 'sidebar-mixed-nav' && preferences.sidebar.hidden) {
updatePreferences({
sidebar: {
hidden: false,
},
});
}
},
);
const slots = useSlots();
const headerSlots = computed(() => {
return Object.keys(slots).filter((key) => key.startsWith('header-'));
Expand Down

0 comments on commit 91aa59a

Please sign in to comment.