2021-11-30 01:04:01 +00:00
|
|
|
<template>
|
|
|
|
<b-row>
|
|
|
|
<b-col>
|
2021-11-30 23:14:25 +00:00
|
|
|
<log-table :logs="logs" />
|
2021-11-30 01:04:01 +00:00
|
|
|
</b-col>
|
|
|
|
</b-row>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import axios from 'axios'
|
2021-11-30 23:14:25 +00:00
|
|
|
import LogTable from './logtable.vue'
|
2021-11-30 01:04:01 +00:00
|
|
|
|
|
|
|
export default {
|
2021-11-30 23:14:25 +00:00
|
|
|
components: { LogTable },
|
|
|
|
|
2021-11-30 01:04:01 +00:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
logs: [],
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
fetchLog() {
|
2021-12-01 01:48:32 +00:00
|
|
|
axios.get('/v1/log?num=50')
|
2021-11-30 01:04:01 +00:00
|
|
|
.then(resp => {
|
|
|
|
this.logs = resp.data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
this.fetchLog()
|
|
|
|
},
|
|
|
|
|
|
|
|
name: 'GoLatestVerLog',
|
|
|
|
}
|
|
|
|
</script>
|