This commit is contained in:
Jonathan Chevalier
2022-10-28 15:03:39 +02:00
parent 4215574f00
commit 8dcd07fce0
15 changed files with 105 additions and 373 deletions

View File

@@ -1,15 +1,17 @@
<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 Home from './components/Home.vue'
import Wizard from "./components/Wizard.vue";
</script>
<template>
<div>
<wizard v-if="$route.path !== '/'"></wizard>
<div v-if="$route.path === '/'">
<router-view></router-view>
</div>
<div v-else>
<wizard></wizard>
<router-view v-slot="{ Component, route }">
<transition name="slide-left">
<transition :name="route.meta.transition || 'fade'" mode="out-in">
<div :key="route.path">
<component :is="Component"/>
</div>