Navigation Tweaks
This commit is contained in:
@@ -7,11 +7,13 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import BoatPreviewComponent from 'src/components/boat/BoatPreviewComponent.vue';
|
||||
import { ref } from 'vue';
|
||||
import { onMounted } from 'vue';
|
||||
import { useBoatStore } from 'src/stores/boat';
|
||||
import ToolbarComponent from 'src/components/ToolbarComponent.vue';
|
||||
import { storeToRefs } from 'pinia';
|
||||
|
||||
const boatStore = useBoatStore();
|
||||
boatStore.fetchBoats();
|
||||
const boats = ref(useBoatStore().boats);
|
||||
const { boats } = storeToRefs(boatStore);
|
||||
|
||||
onMounted(() => boatStore.fetchBoats());
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user