From cec8aaafd6daec4cad28100bc056ecc9019fdb9e Mon Sep 17 00:00:00 2001 From: GouJ Date: Thu, 24 Sep 2026 22:34:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=98=8E=E7=A1=AE=E9=80=89=E8=A7=92?= =?UTF-8?q?=E5=80=99=E9=80=89=E7=94=9F=E6=88=90=E5=AE=8C=E6=88=90=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-identity/useSubjectIdentity.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/features/subject-identity/useSubjectIdentity.ts b/src/features/subject-identity/useSubjectIdentity.ts index c07a6ac..db097ec 100644 --- a/src/features/subject-identity/useSubjectIdentity.ts +++ b/src/features/subject-identity/useSubjectIdentity.ts @@ -285,12 +285,15 @@ export function useSubjectIdentity() { if (!canGenerateCandidate.value || !subject.value || !identity.value) return const id = subject.value.id const identityId = identity.value.id - await runOperation(projectId.value, `生成 ${subject.value.name} 选角候选`, async () => { + const ok = await runOperation(projectId.value, `生成 ${subject.value.name} 选角候选`, async () => { const image = await subjectIdentityApi.generateCastingCandidate(id, input) if (!image || image.identityId !== identityId || image.status !== 'completed' || !image.imageUrl) throw new Error(image?.error || '后端未返回已完成的选角候选,请刷新核对。') }) - await Promise.all([detail.refresh(), castingQuery.refresh()]) + if (ok) { + await Promise.all([detail.refresh(), castingQuery.refresh(), catalog.refresh()]) + operation.value.notice = `${subject.value.name} 选角候选已生成,请在下方候选图中确认正式演员。` + } } /** 候选切换母版只允许成功的 primary 图,不能将辅助视角直接升级为母版。 */