From 41d1bea0b0d8fa0866b3a0c14f1e8e3ea5673152 Mon Sep 17 00:00:00 2001 From: Coze Agent Date: Mon, 5 Oct 2026 17:23:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(viral-video):=20=E6=97=B6=E9=95=BF=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E6=81=A2=E5=A4=8D=E4=B8=BA=E5=8E=9F=E7=94=9F=20Select?= =?UTF-8?q?=EF=BC=8C=E4=BB=85=E6=94=B9=E9=80=89=E9=A1=B9=E4=B8=BA15-30?= =?UTF-8?q?=E7=A7=92=E6=AF=8F=E7=A7=92=E4=B8=80=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除自定义 DurationWheelPicker 组件引用,恢复原来的 Ant Design Select - 选项从 [15,20,30,45,60] 改为 15-30 秒每秒一档(共16项) - 默认值保持20秒(上轮已改) - 样式、交互、弹层方式与其他字段完全一致,无任何 UI 改动 --- apps/web/src/pages/viral-video/ViralVideoPage.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/web/src/pages/viral-video/ViralVideoPage.tsx b/apps/web/src/pages/viral-video/ViralVideoPage.tsx index 07cfe8dd2..436059368 100644 --- a/apps/web/src/pages/viral-video/ViralVideoPage.tsx +++ b/apps/web/src/pages/viral-video/ViralVideoPage.tsx @@ -30,7 +30,6 @@ import { uploadAssetDirect, getAssetLibraries, getAssetsByKind, type AssetItem } import { fetchPresetVoices } from "@/api/voices" import { getVoiceClones, getVoiceClonePreview } from "@/api/voice-clone" import type { VoiceClone } from "@/api/voice-clone" -import DurationWheelPicker from "@/components/common/DurationWheelPicker" import { FUSION_LEVELS, STYLE_STRENGTHS, @@ -224,6 +223,7 @@ const RATIOS = [ { v: "16:9", label: "16:9 横屏(B站/YouTube)" }, { v: "1:1", label: "1:1 方形(小红书)" }, ] +const DURATIONS = Array.from({ length: 16 }, (_, i) => 15 + i) /** 兜底模型列表(接口未返回时使用,字段与 ViralVideoModel 对齐;后端返回后自动覆盖) */ const FALLBACK_VIDEO_MODELS: ViralVideoModel[] = [ { @@ -2433,12 +2433,12 @@ const ViralVideoPage: React.FC = () => {
- setTask({ duration: v })} + options={DURATIONS.map((n) => ({ value: n, label: `${n}秒` }))} />
-- 2.54.0