-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathapp.vue
More file actions
29 lines (25 loc) · 971 Bytes
/
app.vue
File metadata and controls
29 lines (25 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<template lang="pug">
.flex.gap-10.ml-4.mr-2
VerticalNav(class="hidden lg:block" v-if="cvCookie")
.flex.flex-col.gap-5.min-h-screen.grow
div(class="flex flex-col justify-center items-center")
form.well.well-sm
VerticalNavHamburger(class="lg:hidden" v-if="cvCookie" :hamburgerOpen="hamburgerOpen")
CVHeader(:hamburgerOpen="hamburgerOpen" @hamburger="hamburgerOpen = !hamburgerOpen")
NuxtPage
CVFooter
</template>
<script setup lang="ts">
const runtime = useRuntimeConfig()
const router = useRouter()
const routes = ref(router.getRoutes())
const hamburgerOpen = ref(false)
const route = useRoute()
const cvCookie = useCookie('cvtoken')
const cvuser = useCookie('cvuser')
const isSearch = computed(() => route.path == "/Search/")
const isFamilyPage = computed(() => route.path.includes("/Page/"))
if(!cvCookie.value && !isSearch.value && !isFamilyPage.value){
await navigateTo('/Search/?search=')
}
</script>