cleanup admin 'dashboard'
This commit is contained in:
parent
f44da341b4
commit
d13687a910
3 changed files with 35 additions and 64 deletions
33
web/src/views/admin/Dashboard.vue
Normal file
33
web/src/views/admin/Dashboard.vue
Normal file
|
@ -0,0 +1,33 @@
|
|||
<template>
|
||||
<div>
|
||||
<h3 class="text-center">Events</h3>
|
||||
<ul>
|
||||
<li v-for="event in events" :key="event.id">
|
||||
{{ event.slug }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {mapActions, mapState} from 'vuex';
|
||||
import Table from '@/components/Table';
|
||||
|
||||
export default {
|
||||
name: 'Dashboard',
|
||||
components: {},
|
||||
computed: {
|
||||
...mapState(['events']),
|
||||
},
|
||||
methods: {
|
||||
...mapActions(['loadEvents']),
|
||||
|
||||
},
|
||||
mounted() {
|
||||
this.loadEvents();
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue