Testing GridItem + AddFruit components

This commit is contained in:
2020-12-08 18:03:48 +01:00
parent 065ff6f3ff
commit b5ceae6c00
24 changed files with 844 additions and 380 deletions

View File

@@ -17,6 +17,7 @@ export default {
},
addFruit: async ({ commit }, fruit) => {
commit("setLoading", true);
console.log("here");
await axios
.post("http://localhost:3000/fruit", fruit)
.then(res => commit("addFruit", res.data))