fix: after login header is not rendered

This commit is contained in:
Shariq Ansari 2023-09-18 18:38:58 +05:30
parent fed98c9fd8
commit 9d165ba388

View File

@ -1,5 +1,5 @@
<template>
<Teleport to="#header-area">
<Teleport to="#header-area" v-if="showHeader">
<header class="flex justify-between items-center px-5 py-3">
<div class="flex items-center gap-2">
<slot name="left-header" />
@ -10,3 +10,12 @@
</header>
</Teleport>
</template>
<script setup>
import { ref, nextTick } from 'vue'
const showHeader = ref(false)
nextTick(() => {
showHeader.value = true
})
</script>