From fa72856c7524be8b6345ee5454dda3a31f4d8cdb Mon Sep 17 00:00:00 2001
From: hit-cxf <2024111082@stu.hit.edu.cn>
Date: Thu, 11 Jun 2026 22:36:20 +0800
Subject: [PATCH] Optimize video prompt words, assembled from three parts: style control, character list, and scene list

---
 video-claw/video-claw/frontend/components/WorkflowPanel.tsx |   16 ++++------------
 1 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/video-claw/video-claw/frontend/components/WorkflowPanel.tsx b/video-claw/video-claw/frontend/components/WorkflowPanel.tsx
index a48520a..c3dbf69 100644
--- a/video-claw/video-claw/frontend/components/WorkflowPanel.tsx
+++ b/video-claw/video-claw/frontend/components/WorkflowPanel.tsx
@@ -131,8 +131,6 @@
   const [history, setHistory] = useState<HistoryItem[]>([]);
   const [projectParams, setProjectParams] = useState<ProjectParams | null>(null);
   const [autoMode, setAutoMode] = useState(false);
-  const [videoSound, setVideoSound] = useState('on');
-  const [videoShotType, setVideoShotType] = useState('multi');
   // 用于顶栏流程图状态判断
   const [currentStageFromSession, setCurrentStageFromSession] = useState<string | null>(null);
   const [completedStagesFromSession, setCompletedStagesFromSession] = useState<string[]>([]);
@@ -663,8 +661,8 @@
           video_model: projectParams?.video_model,
           video_ratio: projectParams?.video_ratio,
           video_resolution: projectParams?.video_resolution,
-          video_sound: videoSound,
-          video_shot_type: videoShotType,
+          video_sound: 'on',
+          video_shot_type: 'multi',
         };
         // 从剧本产物获取实际场景数
         try {
@@ -768,8 +766,8 @@
       video_start_end_model: projectParams?.video_start_end_model,
       video_reference_model: projectParams?.video_reference_model,
       video_model: projectParams?.video_model,
-      video_sound: videoSound,
-      video_shot_type: videoShotType,
+      video_sound: 'on',
+      video_shot_type: 'multi',
     };
 
     // 设置 running 状态以便显示进度条(如 Logline 选择后生成剧本)
@@ -1374,12 +1372,6 @@
         isRunning={effectiveIsRunning}
         hasPendingItems={hasPendingItems}
         hasNextStageStarted={hasNextStageStarted}
-        videoSound={videoSound}
-        videoShotType={videoShotType}
-        onVideoParamsChange={(params: { videoSound?: string; videoShotType?: string }) => {
-          if (params.videoSound !== undefined) setVideoSound(params.videoSound);
-          if (params.videoShotType !== undefined) setVideoShotType(params.videoShotType);
-        }}
         referenceArtifact={referenceArtifact}
         scriptArtifact={scriptArtifact}
         artifacts={Object.keys(stageStates).reduce((acc: any, key) => {

--
Gitblit v1.8.0