load jobTypes before used
This commit is contained in:
parent
a88e3a0160
commit
144bc1d58e
|
@ -43,15 +43,21 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { computed, defineComponent, ref } from 'vue';
|
import { computed, defineComponent, ref, onBeforeMount } from 'vue';
|
||||||
import { useQuasar } from 'quasar';
|
import { useQuasar } from 'quasar';
|
||||||
import AgendaView from '../components/overview/AgendaView.vue';
|
import AgendaView from '../components/overview/AgendaView.vue';
|
||||||
import ListView from '../components/overview/ListView.vue';
|
import ListView from '../components/overview/ListView.vue';
|
||||||
|
|
||||||
|
import { useEventStore } from '../store';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'EventOverview',
|
name: 'EventOverview',
|
||||||
components: { AgendaView, ListView },
|
components: { AgendaView, ListView },
|
||||||
setup() {
|
setup() {
|
||||||
|
const store = useEventStore();
|
||||||
|
onBeforeMount(() => {
|
||||||
|
void store.getJobTypes();
|
||||||
|
});
|
||||||
const quasar = useQuasar();
|
const quasar = useQuasar();
|
||||||
|
|
||||||
const tabs = computed(() => [
|
const tabs = computed(() => [
|
||||||
|
|
Loading…
Reference in New Issue