From 37a97217f36f036e857d9e8dc7f7fe5d16ee13b5 Mon Sep 17 00:00:00 2001 From: GouJ Date: Thu, 24 Sep 2026 23:10:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8F=90=E4=BA=A4=E8=BA=AB=E4=BB=BD?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E4=BB=BB=E5=8A=A1=E5=90=8E=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../subject-identity/SubjectIdentityPage.vue | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/features/subject-identity/SubjectIdentityPage.vue b/src/features/subject-identity/SubjectIdentityPage.vue index 7e05cd6..639faaf 100644 --- a/src/features/subject-identity/SubjectIdentityPage.vue +++ b/src/features/subject-identity/SubjectIdentityPage.vue @@ -149,6 +149,17 @@ function refreshDirectory() { void Promise.all([catalog.refresh(), castingQuery.refresh()]) } +/** Character 使用确认选角事务;Scene / Prop 保留普通母版切换。 */ +async function submitIdentityImage(input: Parameters[0]) { + await generateImage(input) + if (!operation.value.error) imageOpen.value = false +} + +async function submitCastingCandidate(input: Parameters[0]) { + await generateCastingCandidate(input) + if (!operation.value.error) castingOpen.value = false +} + /** Character 使用确认选角事务;Scene / Prop 保留普通母版切换。 */ function chooseAnchor(imageId: string) { if (subject.value?.module === 'character') void confirmCasting(imageId) @@ -854,7 +865,7 @@ watch( :catalog="generationModelsQuery.data.value" :profile="profileQuery.data.value.profile" :disabled="!canGenerateImage" - @generate="generateImage" /> + @generate="submitIdentityImage" />