v6 update

This commit is contained in:
Mohit Panjwani
2022-01-10 16:06:17 +05:30
parent b770e6277f
commit bdea879273
722 changed files with 19047 additions and 9186 deletions

View File

@ -0,0 +1,36 @@
<template>
<div v-if="isAppLoaded" class="h-full">
<NotificationRoot />
<SiteHeader />
<!-- <SiteSidebar /> -->
<main class="mt-16 pb-16 h-screen h-screen-ios overflow-y-auto min-h-0">
<router-view />
</main>
</div>
<!-- <BaseGlobalLoader v-else /> -->
</template>
<script setup>
import { ref, onMounted, computed } from 'vue'
import SiteHeader from '@/scripts/customer/layouts/partials/TheSiteHeader.vue'
import NotificationRoot from '@/scripts/components/notifications/NotificationRoot.vue'
import { useGlobalStore } from '@/scripts/customer/stores/global'
import { useRoute } from 'vue-router'
const globalStore = useGlobalStore()
const route = useRoute()
const isAppLoaded = computed(() => {
return globalStore.isAppLoaded
})
loadData()
async function loadData() {
await globalStore.bootstrap(route.params.company)
}
</script>