Hi, I used the layout building to get a config of Demo 3 for Metronic 8's VueJS Template. But the sidebar is not hiding.
I think there's a bug (or maybe I am doing it wrong). Please let me know.
Hi,
For the dashboard page, we are enabling Sidebar using the code below. It overrides the default value to enable the sidebar for dashboard page if you want to make sidebar hidden on all pages just remove this code from src/views/Dashboard.vue.
onMounted(() => {
if (!localStorage.getItem(LS_CONFIG_NAME_KEY)) {
LayoutService.enableSidebar();
}
});
onUnmounted(() => {
if (!localStorage.getItem(LS_CONFIG_NAME_KEY)) {
LayoutService.disableSidebar();
}
});