feat(short-drama-agent-front): 接入草案、首帧证据与审核继续
This commit is contained in:
1 parent
751106985e
commit
d0264c08ce
23 files changed
+990
-170
No files matched your search
@@ -20,7 +20,7 @@ import { errorMessage } from '../../../lib/http'
|
||||
import { productionApi } from '../api'
|
||||
import { directionLabel } from '../../storyboard/model'
|
||||
import type { ShotDirection, ShotVisualState } from '../../storyboard/types'
|
||||
import type { GenerateKeyframeInput, KeyframeGenerationPreview } from '../types'
|
||||
import type { GenerateKeyframeInput } from '../types'
|
||||
|
||||
/** 单镜头首帧表单;所有新图先生成候选,通过质量检查后再人工晋升。 */
|
||||
const props = defineProps<{
|
||||
@@ -38,8 +38,6 @@ const props = defineProps<{
|
||||
/** 仅发送已经确认的当前快照。 */
|
||||
submitGeneration: (input: GenerateKeyframeInput) => Promise<ImageGenerationSubmission>
|
||||
}>()
|
||||
/** 只读提供当次正式预览,候选必须匹配输入指纹才能展示。 */
|
||||
const emit = defineEmits<{ previewed: [preview: KeyframeGenerationPreview] }>()
|
||||
/** 当前候选生成窗口。 */
|
||||
const open = defineModel<boolean>('open', { default: false })
|
||||
/** 生成参数表单,用于复用字段校验。 */
|
||||
@@ -86,7 +84,6 @@ const {
|
||||
const shotId = props.shotId
|
||||
const result = await productionApi.previewKeyframe(shotId, input, signal)
|
||||
if (result?.shotId !== shotId) throw new Error('预览结果与当前镜头不匹配。')
|
||||
if (!signal.aborted && shotId === props.shotId) emit('previewed', result)
|
||||
return result
|
||||
},
|
||||
generate: input => props.submitGeneration({ ...input, setPrimary: false })
|
||||
|
||||
Reference in new issue
Block a user