Started work on Schedule Management
This commit is contained in:
12
src/App.vue
12
src/App.vue
@@ -2,17 +2,21 @@
|
||||
<router-view />
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
<script setup lang="ts">
|
||||
import { defineComponent, onMounted } from 'vue';
|
||||
import { useBoatStore } from './stores/boat';
|
||||
import { useScheduleStore } from './stores/schedule';
|
||||
import { useAuthStore } from './stores/auth';
|
||||
|
||||
export default defineComponent({
|
||||
defineComponent({
|
||||
name: 'OYS Borrow-a-Boat',
|
||||
});
|
||||
|
||||
onMounted(async () => {
|
||||
await useBoatStore().fetchBoats();
|
||||
await useScheduleStore().fetchTimeBlocks();
|
||||
if (useAuthStore().currentUser) {
|
||||
await useBoatStore().fetchBoats();
|
||||
await useScheduleStore().fetchTimeBlocks();
|
||||
await useScheduleStore().fetchTimeBlockTemplates();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user