Some timeblock stuff working

This commit is contained in:
2024-05-08 13:32:10 -04:00
parent 033993b1b8
commit 274d0193f7
6 changed files with 239 additions and 39 deletions

View File

@@ -3,9 +3,19 @@
</template>
<script setup lang="ts">
import { defineComponent } from 'vue';
import { defineComponent, onMounted } from 'vue';
import { useScheduleStore } from './stores/schedule';
import { useBoatStore } from './stores/boat';
import { useAuthStore } from './stores/auth';
defineComponent({
name: 'OYS Borrow-a-Boat',
});
onMounted(async () => {
await useAuthStore().init();
await useScheduleStore().fetchTimeBlockTemplates();
await useScheduleStore().fetchTimeBlocks();
await useBoatStore().fetchBoats();
});
</script>