mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-08 15:48:27 -05:00
first version of meal plan diaglo
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
<template>
|
||||
<v-container>
|
||||
|
||||
</v-container>
|
||||
|
||||
<v-container>
|
||||
<v-btn @click="testApi">Test API</v-btn>
|
||||
</v-container>
|
||||
|
||||
|
||||
</template>
|
||||
@@ -27,6 +26,16 @@ export default defineComponent({
|
||||
mounted() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
testApi: function () {
|
||||
const api = new ApiApi()
|
||||
api.apiMealPlanList().then(r => {
|
||||
if (r.length > 0) {
|
||||
api.apiMealPlanUpdate({id: r[0].id, mealPlan: r[0]})
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user