2024-07-15 16:34:28 +02:00
|
|
|
<template>
|
|
|
|
<div>
|
2024-07-23 00:01:44 +02:00
|
|
|
<div v-if="loading">Loading...</div>
|
|
|
|
<div v-if="error">{{ error }}</div>
|
|
|
|
<div v-if="etapeData">
|
|
|
|
<pre>{{ etapeData }}</pre>
|
|
|
|
</div>
|
2024-07-15 16:34:28 +02:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2024-07-23 00:01:44 +02:00
|
|
|
<script setup>
|
|
|
|
import { storeToRefs } from 'pinia';
|
|
|
|
import { useEtapeStore } from '../stores/etape';
|
2024-07-15 16:34:28 +02:00
|
|
|
|
2024-07-23 00:01:44 +02:00
|
|
|
const store = useEtapeStore();
|
2024-07-15 16:34:28 +02:00
|
|
|
|
2024-07-23 00:01:44 +02:00
|
|
|
const { etapeData, loading, error } = storeToRefs(store);
|
|
|
|
</script>
|