mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-30 21:21:09 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			37 lines
		
	
	
		
			863 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			863 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
| <template>
 | |
|   <div v-if="isAppLoaded" class="h-full">
 | |
|     <NotificationRoot />
 | |
| 
 | |
|     <SiteHeader />
 | |
| 
 | |
|     <!-- <SiteSidebar /> -->
 | |
| 
 | |
|     <main class="mt-16 pb-16 h-screen 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>
 |