load jobTypes before used

This commit is contained in:
Tim Gröger 2023-04-28 20:45:30 +02:00
parent a88e3a0160
commit 144bc1d58e
1 changed files with 7 additions and 1 deletions

View File

@ -43,15 +43,21 @@
</template>
<script lang="ts">
import { computed, defineComponent, ref } from 'vue';
import { computed, defineComponent, ref, onBeforeMount } from 'vue';
import { useQuasar } from 'quasar';
import AgendaView from '../components/overview/AgendaView.vue';
import ListView from '../components/overview/ListView.vue';
import { useEventStore } from '../store';
export default defineComponent({
name: 'EventOverview',
components: { AgendaView, ListView },
setup() {
const store = useEventStore();
onBeforeMount(() => {
void store.getJobTypes();
});
const quasar = useQuasar();
const tabs = computed(() => [