29 lines
493 B
Vue
29 lines
493 B
Vue
|
<template>
|
||
|
<div class="home">
|
||
|
<ContainerList :containers="containers"/>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import ContainerList from '../components/ContainerList'
|
||
|
import { getContainers } from '../lib/api'
|
||
|
import { ref } from 'vue'
|
||
|
|
||
|
export default {
|
||
|
name: 'Dashboard',
|
||
|
components: { ContainerList },
|
||
|
setup () {
|
||
|
const containers = ref([])
|
||
|
|
||
|
getContainers()
|
||
|
.then(c => {
|
||
|
containers.value = c
|
||
|
})
|
||
|
|
||
|
return {
|
||
|
containers: containers
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|