go-latestver/src/log.vue
Knut Ahlers 97800f2081
Update dependencies, replace axios
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-11-12 13:30:59 +01:00

37 lines
504 B
Vue

<template>
<b-row>
<b-col>
<log-table :logs="logs" />
</b-col>
</b-row>
</template>
<script>
import LogTable from './logtable.vue'
export default {
components: { LogTable },
data() {
return {
logs: [],
}
},
methods: {
fetchLog() {
return fetch('/v1/log?num=50')
.then(resp => resp.json())
.then(data => {
this.logs = data
})
},
},
mounted() {
this.fetchLog()
},
name: 'GoLatestVerLog',
}
</script>