WIP MMCM
This commit is contained in:
10
src/App.vue
10
src/App.vue
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user