Get all contacts on mounted
This commit is contained in:
parent
cecb9ef0f0
commit
a72f228e4e
1 changed files with 4 additions and 1 deletions
|
|
@ -16,7 +16,7 @@
|
|||
</ThreeColumn>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import { onMounted, ref } from "vue";
|
||||
import { computedAsync } from "@vueuse/core";
|
||||
|
||||
import ThreeColumn from "@/components/layout/ThreeColumn.vue";
|
||||
|
|
@ -34,4 +34,7 @@ const selectedContact = ref<Contact | undefined>(undefined);
|
|||
const handleSelectionChange = (selection: Contact | undefined) => {
|
||||
selectedContact.value = selection;
|
||||
};
|
||||
onMounted(async () => {
|
||||
await storeResource.contact.fetchAll();
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue