Skip to content

Commit

Permalink
fix: improve layout boundary issues (#4450)
Browse files Browse the repository at this point in the history
  • Loading branch information
LanceJiang authored Sep 21, 2024
1 parent bc625ee commit 81a9acc
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 81a9acc

Please sign in to comment.