Files
AppReports/src/views/Home.vue
T
2020-08-16 11:48:06 +02:00

30 lines
387 B
Vue

<template>
<ul>
<li
v-for="(app,key) in apps"
:key="key"
>
<a
:href="'/app/' + app.id"
v-text="app.name"
/>
</li>
</ul>
</template>
<script>
export default {
data () {
return { apps: [] };
},
async mounted () {
this.apps = await fetch ('/app')
.then ((res) => res.json ());
}
};
</script>
<style>
</style>