refactor: 同步独立选角与默认人物基线

This commit is contained in:
GouJ
2026-09-01 10:11:15 +08:00
parent 53917268d3
commit 95bd12cfcd
9 changed files with 25 additions and 14 deletions
@@ -4,7 +4,7 @@ import { AppDialog } from '../../../components/ui'
import { validImageSize } from '../../subject-images/model'
import type { GenerateCastingCandidateInput } from '../types'
/** Character 选角候选表单固定使用 primary,且不会自动选择演员。 */
/** Character 选角候选表单固定使用 primary,每次独立生成且不会自动选择演员。 */
const props = defineProps<{ subjectId: string; subjectName: string; disabled: boolean }>()
const open = defineModel<boolean>('open', { default: false })
const emit = defineEmits<{ generate: [input: GenerateCastingCandidateInput] }>()
@@ -39,8 +39,8 @@ function submit() {
<AppDialog v-model:open="open" title="生成角色选角候选" :description="`${subjectName} · 候选不会自动成为身份母版`">
<form class="mt-5 space-y-4" @submit.prevent="submit">
<p class="alert text-xs">
后端会依据角色 Identity项目视觉风格和默认选角约束生成一张 primary
候选生成完成后仍需人工点击确认选角
后端会依据角色 Identity项目视觉风格和默认选角约束独立生成一张 primary
候选不会复用当前身份母版生成完成后仍需人工点击确认选角
</p>
<label class="block">
<span class="field-label">覆盖本次完整提示词可选</span>
@@ -48,7 +48,7 @@ function submit() {
id="casting-candidate-prompt"
v-model="prompt"
class="input min-h-24"
placeholder="建议留空,使用后端编译的稳定身份和选角约束"
placeholder="建议留空,使用后端编译的稳定身份和选角约束;未明确人物背景时默认中国人物"
/>
</label>
<p v-if="prompt.trim()" class="text-xs text-danger">