This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user