From 087bd4aa6fe6d89d7156d3901d01003c60ee9a95 Mon Sep 17 00:00:00 2001 From: GouJ Date: Fri, 25 Sep 2026 00:39:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=98=8E=E7=A1=AE=E5=BD=A2=E6=80=81?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=BC=82=E6=AD=A5=E6=8F=90=E4=BA=A4=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/subject-images/useSubjectImages.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/features/subject-images/useSubjectImages.ts b/src/features/subject-images/useSubjectImages.ts index 5e66d7d..bc1d6e1 100644 --- a/src/features/subject-images/useSubjectImages.ts +++ b/src/features/subject-images/useSubjectImages.ts @@ -129,12 +129,15 @@ export function useSubjectImages() { const form = forms.value.find(item => item.id === formId) if (!form) return const projectId = id.value - await runOperation(projectId, `生成 ${form.subject.name} · ${form.name} 图片`, async () => { + const ok = await runOperation(projectId, `提交 ${form.subject.name} · ${form.name} 图片生成`, async () => { const image = await subjectImagesApi.generate(formId, input) if (!image || image.subjectFormId !== formId || !['pending', 'generating'].includes(image.status)) throw new Error(image?.error || '接口未返回有效的形态图片生成任务,请刷新图片记录核对。') }) - await query.refresh() + if (ok) { + await query.refresh() + operation.value.notice = `${form.subject.name} · ${form.name} 已提交生成,可稍后刷新图库查看结果。` + } } /** 批量始终面向整个项目,不受页面筛选影响;force 仅新增候选图,不替换已有主图。 */