fix: 场景道具身份图固定使用主视角
This commit is contained in:
1 parent
84123b9851
commit
1523f3984d
1 file changed
+5
-2
@@ -30,7 +30,9 @@ const generationOptions = ref<GenerationOptions>({})
|
||||
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,
|
||||
|
||||
Reference in new issue
Block a user