number shows up
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-05-21 21:55:27 +02:00
parent 367605ca06
commit d36555d0e4
3 changed files with 165 additions and 3 deletions

View File

@ -1,7 +1,28 @@
<script lang="ts">
import axios from "axios";
export default {
data() {
return {
weeknumber: 0,
};
},
async created() {
try {
const res = await axios.get("https://hanyadikhetvan.tormakristof.eu/");
this.weeknumber = res.data;
} catch (error) {
console.log(error);
}
}
}
</script>
<template>
<div>
<h1>
WeekNumber
{{weeknumber}}
</h1>
</div>
</template>