ffplayout/layouts/default.vue

23 lines
521 B
Vue
Raw Normal View History

2020-01-29 17:40:15 +01:00
<template>
2024-04-04 23:28:25 +02:00
<div class="min-h-screen bg-base-200">
<div v-if="authStore.isLogin && route.name !== 'index'" class="sticky top-0 z-10">
2024-04-04 23:28:25 +02:00
<Menu />
2023-01-11 10:54:25 +01:00
</div>
2024-04-04 23:28:25 +02:00
2024-04-08 09:35:31 +02:00
<main :class="authStore.isLogin && route.name !== 'index' ? 'h-[calc(100%-52px)]': 'h-full'">
2024-04-04 23:28:25 +02:00
<slot />
</main>
<Alert />
</div>
2020-01-29 17:40:15 +01:00
</template>
2023-01-11 10:54:25 +01:00
<script setup lang="ts">
const configStore = useConfig()
2024-04-04 23:28:25 +02:00
const authStore = useAuth()
2020-05-28 10:15:07 +02:00
2024-04-04 23:28:25 +02:00
const route = useRoute()
2023-01-11 10:54:25 +01:00
await configStore.nuxtClientInit()
</script>