feat(short-drama-agent-front): 完善主体身份骨架屏与交互反馈

This commit is contained in:
GJ committed 2026-10-11 17:23:14 +08:00
1 parent 5fa1c251a9
commit dd0bd79a35
19 files changed
+1552 -419

No files matched your search

@@ -36,17 +36,14 @@ const imageGenerationOptions = ref<GenerationOptions>({})
const projectAspectRatio = ref<CreativeProfileAspectRatio>('9:16')
const canSubmit = computed(() => !props.disabled && confirmed.value)
/** 预览仅对应当前镜头、模型和参数;请求过期后不得覆盖新配置。 */
const previewRequestKey = computed(() => JSON.stringify([
props.shotId,
imageProvider.value,
imageGenerationOptions.value
]))
const previewRequestKey = computed(() =>
JSON.stringify([props.shotId, imageProvider.value, imageGenerationOptions.value])
)
watch(previewRequestKey, () => {
preview.value = null
previewError.value = ''
})
/** 切换镜头或重新打开时清空费用确认;新图一律先作为候选。 */
async function reset() {
confirmed.value = false
@@ -164,7 +161,11 @@ async function loadPreview() {
</NTag>
</div>
<!-- 规格审计仅提示导演约束风险,不阻止首帧生成。 -->
<section v-if="preview.specConsistencySummary" class="mt-3 bg-muted/10 p-3" aria-label="生成规格一致性检查">
<section
v-if="preview.specConsistencySummary"
class="mt-3 bg-muted/10 p-3"
aria-label="生成规格一致性检查"
>
<div class="flex flex-wrap items-center gap-2">
<strong>生成规格检查</strong>
<NTag