split per app
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user