fix: default planned episode count to one

This commit is contained in:
GouJ
2026-09-14 16:22:38 +08:00
parent 204ee199a3
commit a2f09faca8
@@ -14,7 +14,7 @@ const emit = defineEmits<{ created: [projectId: string] }>()
const open = ref(false) const open = ref(false)
const busy = ref(false) const busy = ref(false)
const error = ref('') const error = ref('')
const form = reactive({ topic: '', style: '', episodeCount: 3 }) const form = reactive({ topic: '', style: '', episodeCount: 1 })
/** 校验正整数集数和主题,禁止双击产生重复项目。 */ /** 校验正整数集数和主题,禁止双击产生重复项目。 */
async function submit() { async function submit() {
@@ -92,7 +92,7 @@ const rules = { topic: requiredTextRule('故事主题'), episodeCount: integerRu
></NFormItem> ></NFormItem>
</div> </div>
<p class="text-xs leading-5 text-muted"> <p class="text-xs leading-5 text-muted">
建议先用 3 集验证生成效果生成会实际调用后端模型产生相应费用 建议先用 1 集验证生成效果生成会实际调用后端模型产生相应费用
</p> </p>
<NAlert v-if="error" role="alert" type="error" :show-icon="false" class=" ">{{ error }}</NAlert> <NAlert v-if="error" role="alert" type="error" :show-icon="false" class=" ">{{ error }}</NAlert>
<div class="dialog-footer"> <div class="dialog-footer">