From 876da821398e8bc2b14531edd4a569328161e3aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Fri, 19 Sep 2025 20:17:26 +0800 Subject: [PATCH] =?UTF-8?q?8s=E6=97=B6=E9=95=BF=E4=B8=8D=E8=B5=B0=E5=89=A7?= =?UTF-8?q?=E6=9C=AC=E6=8B=93=E5=B1=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ChatInputBox/ChatInputBox.tsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/components/ChatInputBox/ChatInputBox.tsx b/components/ChatInputBox/ChatInputBox.tsx index acd7d94..f79f976 100644 --- a/components/ChatInputBox/ChatInputBox.tsx +++ b/components/ChatInputBox/ChatInputBox.tsx @@ -162,6 +162,20 @@ export function ChatInputBox({ noData }: { noData: boolean }) { ...prev, [key]: value, })); + if (key === 'videoDuration') { + // 当选择 8s 时,强制关闭剧本扩展并禁用开关 + if (value === '8s') { + setConfigOptions((prev) => ({ + ...prev, + expansion_mode: false, + })); + } else { + setConfigOptions((prev) => ({ + ...prev, + expansion_mode: true, + })); + } + } }; const handleCreateVideo = async () => { @@ -404,6 +418,7 @@ export function ChatInputBox({ noData }: { noData: boolean }) { onConfigChange('expansion_mode', checked)} />