mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-10 08:38:34 -05:00
improved startpage
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import {defineComponent, onMounted, ref, watch} from 'vue'
|
||||
import {ApiApi, Recipe} from "@/openapi";
|
||||
import {ApiApi, Recipe, ViewLog} from "@/openapi";
|
||||
import RecipeView from "@/components/display/RecipeView.vue";
|
||||
import {useDisplay} from "vuetify";
|
||||
|
||||
@@ -33,6 +33,12 @@ function refreshData(recipeId: string) {
|
||||
api.apiRecipeRetrieve({id: Number(recipeId)}).then(r => {
|
||||
recipe.value = r
|
||||
})
|
||||
|
||||
api.apiViewLogCreate({
|
||||
viewLog: {
|
||||
recipe: Number(recipeId)
|
||||
} as ViewLog
|
||||
})
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user