Fix useContent not using cookies therefore skipping the auth step

This commit is contained in:
2025-01-05 22:43:40 +01:00
parent 9515132659
commit 896af11fa7
15 changed files with 37 additions and 39 deletions

View File

@@ -106,6 +106,9 @@ const options = ref<DropdownOption[]>([{
const open = ref(false);
const { loggedIn, user, clear } = useUserSession();
const { fetch } = useContent();
await fetch(false);
const route = useRouter().currentRoute;
const path = computed(() => route.value.params.path ? Array.isArray(route.value.params.path) ? route.value.params.path[0] : route.value.params.path : undefined);