diff --git a/frontend/src/components/RecipeDetailOverlay.vue b/frontend/src/components/RecipeDetailOverlay.vue index 897f16d..2495607 100644 --- a/frontend/src/components/RecipeDetailOverlay.vue +++ b/frontend/src/components/RecipeDetailOverlay.vue @@ -5,7 +5,7 @@
-
+
@@ -122,7 +122,7 @@ @@ -787,9 +787,10 @@ async function saveRecipe() { name: editName.value.trim(), note: editNote.value.trim(), tags: editTags.value, - ingredients, + ingredients: ingredients.map(i => ({ oil_name: i.oil, drops: i.drops })), } await recipesStore.saveRecipe(payload) + await recipesStore.loadRecipes() ui.showToast('保存成功') emit('close') } catch (e) {