From 1523f3984dfb4b4b359c2951662f99b98f55613d Mon Sep 17 00:00:00 2001 From: GouJ Date: Thu, 24 Sep 2026 23:47:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=BA=E6=99=AF=E9=81=93=E5=85=B7?= =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E5=9B=BE=E5=9B=BA=E5=AE=9A=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E4=B8=BB=E8=A7=86=E8=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../subject-identity/components/IdentityImageDialog.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/features/subject-identity/components/IdentityImageDialog.vue b/src/features/subject-identity/components/IdentityImageDialog.vue index 037c019..e130194 100644 --- a/src/features/subject-identity/components/IdentityImageDialog.vue +++ b/src/features/subject-identity/components/IdentityImageDialog.vue @@ -30,7 +30,9 @@ const generationOptions = ref({}) const acknowledged = ref(false) const anchor = computed(() => currentAnchor(props.images)) const allowedViews = computed(() => - Object.entries(identityViewLabels).filter(([value]) => props.module !== 'character' || value !== 'primary') + props.module === 'character' + ? Object.entries(identityViewLabels).filter(([value]) => value !== 'primary') + : [['primary', identityViewLabels.primary]] ) const references = computed(() => props.images.filter(image => image.status === 'completed' && image.imageUrl)) const valid = computed( @@ -61,8 +63,9 @@ watch( /** 提交生图参数;省略空参考 ID 以保留后端自动选择逻辑。 */ function submit() { if (props.disabled || !valid.value || !acknowledged.value) return + const effectiveViewType: IdentityViewType = props.module === 'character' ? viewType.value : 'primary' emit('generate', { - viewType: viewType.value, + viewType: effectiveViewType, ...(referenceImageId.value ? { referenceImageId: referenceImageId.value } : {}), ...(prompt.value.trim() ? { prompt: prompt.value.trim() } : {}), provider: provider.value,