Merge pull request #4 from shariquerik/header-missing-on-login
This commit is contained in:
commit
60b216ea2a
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<Teleport to="#header-area">
|
<Teleport to="#header-area" v-if="showHeader">
|
||||||
<header class="flex justify-between items-center px-5 py-3">
|
<header class="flex justify-between items-center px-5 py-3">
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<slot name="left-header" />
|
<slot name="left-header" />
|
||||||
@ -10,3 +10,12 @@
|
|||||||
</header>
|
</header>
|
||||||
</Teleport>
|
</Teleport>
|
||||||
</template>
|
</template>
|
||||||
|
<script setup>
|
||||||
|
import { ref, nextTick } from 'vue'
|
||||||
|
|
||||||
|
const showHeader = ref(false)
|
||||||
|
|
||||||
|
nextTick(() => {
|
||||||
|
showHeader.value = true
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user