From d48e8d4bdf7045bee50f3ac1b841f704d0ef65ca Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Mon, 14 Sep 2026 20:45:58 +0800 Subject: [PATCH] refactor: update STEPS to 5 steps + add clip count constants (#1899) --- apps/web/src/pages/generate/constants.ts | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/apps/web/src/pages/generate/constants.ts b/apps/web/src/pages/generate/constants.ts index f229ef740..0eda9315b 100644 --- a/apps/web/src/pages/generate/constants.ts +++ b/apps/web/src/pages/generate/constants.ts @@ -27,16 +27,21 @@ export const VOICE_GENDER_ICON: Record = { neutral: "✨", } -/* ── 步骤定义 ── */ +/* ── 步骤定义(5步,#1899 简化:删除选模板步骤) ── */ export const STEPS = [ - { key: 1, label: "选择模板" }, - { key: 2, label: "选择素材" }, - { key: 3, label: "选择配音" }, - { key: 4, label: "选择标题" }, - { key: 5, label: "确认生成" }, - { key: 6, label: "选择封面" }, + { key: 1, label: "选择素材" }, + { key: 2, label: "选择配音" }, + { key: 3, label: "选择标题" }, + { key: 4, label: "确认生成" }, + { key: 5, label: "选择封面" }, ] +/* ── 片段数量配置(#1899) ── */ +export const DEFAULT_CLIP_COUNT = 3 +export const MIN_CLIP_COUNT = 1 +export const MAX_CLIP_COUNT = 10 +export const CLIP_COUNT_STEP = 1 + /* ── 批量生成限制 ── */ export const MAX_PREVIEW_COUNT = 10 export const MIN_PREVIEW_COUNT = 1