improved startpage

This commit is contained in:
vabene1111
2025-01-03 22:14:38 +01:00
parent 9eca4673cd
commit dc58b42f68
41 changed files with 118 additions and 7 deletions

View File

@@ -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>