<script>
import axios from 'axios'
export default {
data () {
return {
year: 2022,
error: '',
form: [],
}
}
mounted: function() {
axios
.get("http://example/" + this.year)
.then(response => {
this.form= response.data;
})
.catch(function(e){
this.error = e;
});
},
}
</script>