localhost-front/src/App.vue
2025-01-21 15:44:05 +09:00

22 lines
559 B
Vue

<template>
<component :is="layout">
<template #content>
<router-view></router-view>
</template>
</component>
<ToastModal />
</template>
<script setup>
import { computed } from 'vue';
import { useRoute } from 'vue-router';
import NormalLayout from './layouts/NormalLayout.vue';
import NoLayout from './layouts/NoLayout.vue';
import ToastModal from '@c/modal/ToastModal.vue';
const route = useRoute();
const layout = computed(() => {
return route.meta.layout === 'NoLayout' ? NoLayout : NormalLayout;
});
</script>