1
0
forked from test/crm

Merge pull request #4 from shariquerik/header-missing-on-login

This commit is contained in:
Shariq Ansari 2023-09-18 18:53:02 +05:30 committed by GitHub
commit 60b216ea2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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>