ffplayout/layouts/default.vue
2024-04-06 23:12:06 +02:00

30 lines
608 B
Vue

<template>
<div class="min-h-screen bg-base-200">
<div v-if="authStore.isLogin && route.name !== 'index'">
<Menu />
</div>
<main class="h-[calc(100%-52px)]">
<slot />
</main>
<Alert />
</div>
</template>
<script setup lang="ts">
const configStore = useConfig()
const authStore = useAuth()
const route = useRoute()
onMounted(() => {
// @ts-ignore
// new $bootstrap.Tooltip(document.body, {
// selector: "[data-tooltip=tooltip]",
// container: "body"
// })
})
await configStore.nuxtClientInit()
</script>