работаем бля работаем
This commit is contained in:
20
new-client/src/app/App.vue
Normal file
20
new-client/src/app/App.vue
Normal file
@@ -0,0 +1,20 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user