From 2ab192c3ba80f8f6ab95a6d9affb5cba7619ec7d Mon Sep 17 00:00:00 2001 From: YoYo Date: Tue, 7 Apr 2026 22:49:07 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AD=98=E4=B8=BA=E6=88=91=E7=9A=84?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E6=A1=86=E6=94=B9=E7=94=A8=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=20CustomDialog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 saveToDiary 中的原生 prompt() 替换为项目内置的 showPrompt(),与全站风格保持一致。 --- frontend/src/components/RecipeDetailOverlay.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/RecipeDetailOverlay.vue b/frontend/src/components/RecipeDetailOverlay.vue index d2a6027..512b2b7 100644 --- a/frontend/src/components/RecipeDetailOverlay.vue +++ b/frontend/src/components/RecipeDetailOverlay.vue @@ -350,6 +350,7 @@ import { useUiStore } from '../stores/ui' import { useDiaryStore } from '../stores/diary' import { api } from '../composables/useApi' import { oilEn, recipeNameEn } from '../composables/useOilTranslation' +import { showPrompt } from '../composables/useDialog' // TagPicker replaced with inline tag editing const props = defineProps({ @@ -576,7 +577,7 @@ async function saveToDiary() { ui.openLogin() return } - const name = prompt('保存为我的配方,名称:', recipe.value.name) + const name = await showPrompt('保存为我的配方,名称:', recipe.value.name) if (!name) return try { await api.post('/api/diary', {