Set up the api factory and very first service

This commit is contained in:
Bubka
2023-09-21 16:52:13 +02:00
parent 2c05651c43
commit 531b35c786
5 changed files with 100 additions and 8 deletions

View File

@ -0,0 +1,43 @@
<template>
<div>
<h1>On About view</h1>
<div>
{{ infos }}
</div>
<br />
<div>
{{ toto }}
</div>
<router-link :to="{ name: 'accounts' }">Go to About</router-link>
</div>
</template>
<script>
import SystemService from "@/services/systemService";
export default {
name: 'About',
data() {
return {
infos : null,
toto : '',
}
},
mounted() {
this.getInfos().then()
this.toto = 'jknlkjnlkjnlkjnlkjn'
},
methods: {
async getInfos() {
await SystemService.getSystemInfos().then(response => {
this.infos = response.data
})
},
}
}
</script>