21 lines
399 B
Vue
21 lines
399 B
Vue
<template>
|
|
<Component :is="layoutComponent">
|
|
<RouterView />
|
|
</Component>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import DefaultLayout from '@shared/layouts/Default.vue'
|
|
import { computed } from 'vue'
|
|
import { useRoute } from 'vue-router'
|
|
|
|
const route = useRoute()
|
|
|
|
const layoutComponent = computed(() => {
|
|
return route.meta.layout ?? DefaultLayout
|
|
})
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
</style>
|