feat(short-drama-agent-front): 完善镜头定位与项目配置

This commit is contained in:
GJ committed 2026-10-08 19:45:26 +08:00
1 parent 470b52e26d
commit 5b134207b8
66 files changed
+2042 -984

No files matched your search

@@ -17,6 +17,8 @@ const open = ref(false)
const busy = ref(false)
/** 创建请求的错误提示。 */
const error = ref('')
/** 公共表单实例,底栏和回车提交共用同一字段校验。 */
const formRef = ref<InstanceType<typeof AppForm> | null>(null)
/** 与后端 POST /projects 入参一致的创建表单。 */
const form = reactive({ title: '', topic: '', style: '', episodeCount: 1 })
@@ -61,6 +63,7 @@ const rules = {
><NButton @click="open = true" type="primary"><Plus :size="16" />新建剧本</NButton></template
>
<AppForm
ref="formRef"
:model="form"
:rules="rules"
:disabled="busy"
@@ -116,11 +119,10 @@ const rules = {
建议先用 1 集验证生成效果。生成会实际调用后端模型,产生相应费用。
</p>
<NAlert v-if="error" role="alert" type="error" :show-icon="false" class=" ">{{ error }}</NAlert>
</AppForm>
<template #footer>
<NButton :disabled="busy" @click="open = false">取消</NButton>
<NButton :disabled="busy" type="primary" @click="submit">
<NButton :disabled="busy" type="primary" @click="formRef?.validate(submit)">
<LoaderCircle v-if="busy" :size="16" class="animate-spin" />
开始生成
<ArrowRight v-if="!busy" :size="16" />