24 lines
580 B
Vue
24 lines
580 B
Vue
<template>
|
|||
|
|
<div class="mt-10 p-5">
|
||
|
|
<component :is="layoutComponent" :layout-config="layoutConfig" />
|
||
|
|
<AppHeader @logout="$emit('logout')" />
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script lang="ts" setup>
|
||
|
|
import { computed } from 'vue'
|
||
|
|
import AppHeader from '../components/AppHeader.vue'
|
||
|
|
import {
|
||
|
|
getHomeLayoutConfig,
|
||
|
|
getHomeLayoutId,
|
||
|
|
resolveHomeLayoutComponent,
|
||
|
|
} from '../layouts/registry'
|
||
|
|
|
||
|
|
defineEmits<{
|
||
|
|
logout: []
|
||
|
|
}>()
|
||
|
|
|
||
|
|
const layoutComponent = computed(() => resolveHomeLayoutComponent())
|
||
|
|
const layoutConfig = computed(() => getHomeLayoutConfig(getHomeLayoutId()))
|
||
|
|
</script>
|