24 lines
438 B
Vue
24 lines
438 B
Vue
<template>
|
|
<div>
|
|
Mon voyage
|
|
|
|
<ModalVoyageCreation :open="!voyage" @submit="createVoyage"></ModalVoyageCreation>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
//import { useVoyageStore } from '~/stores/voyageStore';
|
|
|
|
const voyageStore = useVoyageStore();
|
|
const props = defineProps({
|
|
voyage: {
|
|
type: Object,
|
|
required: false,
|
|
},
|
|
});
|
|
|
|
const createVoyage = async (voyage) => {
|
|
await voyageStore.addVoyage(voyage);
|
|
};
|
|
</script>
|
|
|