fe fixes profil
This commit is contained in:
@@ -8,7 +8,7 @@ import AppSidebar from './AppSidebar.vue';
|
||||
import AppTopbar from './AppTopbar.vue';
|
||||
|
||||
|
||||
const { layoutConfig, layoutState, isSidebarActive, resetMenu } = useLayout();
|
||||
const { hideMenu, layoutConfig, layoutState, isSidebarActive, resetMenu } = useLayout();
|
||||
|
||||
const outsideClickListener = ref(null);
|
||||
const page = ref("progetti");
|
||||
@@ -16,6 +16,7 @@ const userPrefStore = UserPrefStore();
|
||||
const route = useRoute();
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
userPrefStore.fetchUserData();
|
||||
});
|
||||
|
||||
@@ -28,6 +29,12 @@ watch(isSidebarActive, (newVal) => {
|
||||
}
|
||||
});
|
||||
|
||||
watch(route, (newRoute) => {
|
||||
if (newRoute.path === '/projects') {
|
||||
hideMenu();
|
||||
}
|
||||
});
|
||||
|
||||
const containerClass = computed(() => {
|
||||
return {
|
||||
'layout-theme-light': !layoutConfig.darkTheme,
|
||||
|
||||
Reference in New Issue
Block a user