26 lines
606 B
Vue
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>
|