load jobTypes before used
This commit is contained in:
parent
a88e3a0160
commit
144bc1d58e
|
@ -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(() => [
|
||||
|
|
Loading…
Reference in New Issue