ffplayout/layouts/default.vue

32 lines
633 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'">
<Menu />
2023-01-11 10:54:25 +01:00
</div>
2024-04-04 23:28:25 +02:00
<main class="h-[calc(100%-52px)]">
<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()
console.log(route.name)
2020-04-20 18:06:08 +02:00
onMounted(() => {
// @ts-ignore
2024-04-04 23:28:25 +02:00
// new $bootstrap.Tooltip(document.body, {
// selector: "[data-tooltip=tooltip]",
// container: "body"
// })
})
2023-01-11 10:54:25 +01:00
await configStore.nuxtClientInit()
</script>