Files
mmcm/src/App.vue
Jonathan Chevalier 8dcd07fce0 WIP MMCM
2022-10-28 15:03:39 +02:00

26 lines
606 B
Vue

<script setup>
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://vuejs.org/api/sfc-script-setup.html#script-setup
import Wizard from "./components/Wizard.vue";
</script>
<template>
<div v-if="$route.path === '/'">
<router-view></router-view>
</div>
<div v-else>
<wizard></wizard>
<router-view v-slot="{ Component, route }">
<transition :name="route.meta.transition || 'fade'" mode="out-in">
<div :key="route.path">
<component :is="Component"/>
</div>
</transition>
</router-view>
</div>
</template>
<style scoped>
</style>