import { createRouter, createWebHistory } from 'vue-router'; import ModaleView from '../vuejs/Modale.vue'; const routes = [ { name: 'etape', path: '/etapes/:title?', component: ModaleView, props: {id: null} }, { name: 'home', path: '/', component: ModaleView }, ]; const router = createRouter({ history: createWebHistory(), routes, }); export default router;