mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-14 07:48:37 +02:00
Set up the api factory and very first service
This commit is contained in:
43
resources/js_vue3/views/About.vue
Normal file
43
resources/js_vue3/views/About.vue
Normal 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>
|
Reference in New Issue
Block a user