displaying stub info

This commit is contained in:
2020-07-29 21:13:18 +02:00
parent 4296f42ee7
commit f95fe42c7f
7 changed files with 63 additions and 8 deletions

View File

@ -0,0 +1,29 @@
<template>
<table>
<tr
v-for="(item,key) of items"
:key="key"
>
<td
v-for="i_key of Object.keys(item)"
:key="i_key"
v-text="item[i_key]"
/>
</tr>
</table>
</template>
<script>
export default {
props: {
items: {
type: Array,
required: true
}
}
};
</script>
<style>
</style>

View File

@ -1,8 +1,19 @@
<template>
<div class="home" />
<div class="home">
<TableView :items="log" />
</div>
</template>
<script>
import Vuex from 'vuex';
import TableView from '../components/TableView.vue';
export default {};
export default {
components: { TableView },
computed: { ...Vuex.mapState ({ log: (state) => state.log }) },
mounted () {
this.get_log ();
},
methods: { ...Vuex.mapActions ({ get_log: 'get_log' }) }
};
</script>