ffplayout/layouts/default.vue
2024-04-04 23:28:25 +02:00

32 lines
633 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()
console.log(route.name)
onMounted(() => {
// @ts-ignore
// new $bootstrap.Tooltip(document.body, {
// selector: "[data-tooltip=tooltip]",
// container: "body"
// })
})
await configStore.nuxtClientInit()
</script>