Files
2024-06-10 13:18:04 +03:30

24 lines
525 B
Vue

<template>
<NuxtLoadingIndicator color="#ffbe33" :duration="1" :throttle="0"/>
<NuxtLayout />
<div @click="showSearchBox = false">
<NuxtPage />
</div>
<NuxtLayout name="footer"/>
</template>
<script setup>
const showSearchBox = useState("showSearchBox");
watch(showSearchBox, ()=>{
if (process.client) {
if (showSearchBox.value === true) {
document.body.classList.add('overflow-hidden')
}else{
document.body.classList.remove('overflow-hidden')
}
}
})
</script>