align code with gridsome doc

This commit is contained in:
2021-07-31 16:55:54 +02:00
parent 6c6e16c8b1
commit 5b6f9f3be5

View File

@@ -32,8 +32,12 @@ export default {
status: {}, status: {},
}; };
}, },
mounted() { async mounted() {
try {
this.fetchData(); this.fetchData();
} catch (error) {
console.log(error);
}
}, },
methods: { methods: {
fetchData: function() { fetchData: function() {