Files
OpenSquawk/app/app.vue
2025-09-21 00:42:17 +02:00

23 lines
456 B
Vue

<template>
<v-app>
<NuxtPage/>
<CookieConsentBanner v-if="showCookieBanner"/>
</v-app>
</template>
<script setup lang="ts">
import { computed } from 'vue';
import { useRoute } from '#imports';
import { useAuthStore } from '~/stores/auth';
const route = useRoute();
const authStore = useAuthStore();
const showCookieBanner = computed(() => {
if (!authStore.isAuthenticated) {
return true;
}
return route.path === '/';
});
</script>