This commit is contained in:
dap
2024-09-21 19:12:42 +08:00
9 changed files with 171 additions and 11 deletions

View File

@@ -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-'));