From 080dbcbabee4276538c6e3cb3954dee5ac0f0030 Mon Sep 17 00:00:00 2001 From: ddcat666 <26564566+ddcat666@users.noreply.github.com> Date: Thu, 1 Oct 2026 13:18:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(web):=20=E9=9F=B3=E9=A2=91=E4=B8=8E?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E7=B4=A0=E6=9D=90=20-=20=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E6=A3=80=E6=9F=A5=E6=9C=AA=E9=80=9A=E8=BF=87?= =?UTF-8?q?=E7=9A=84=E4=BB=A3=E7=A0=81=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 角色库、音频参数和音频测试在上次提交后不再符合 Prettier,质量检查因此失败。只调整格式,不改变交互。 --- web/src/components/audio-settings-panel.tsx | 104 ++++---- .../canvas/canvas-character-library-modal.tsx | 26 +- .../canvas/character-media-library.tsx | 230 ++++++++++++------ web/test/audio-generation.test.ts | 18 +- 4 files changed, 236 insertions(+), 142 deletions(-) diff --git a/web/src/components/audio-settings-panel.tsx b/web/src/components/audio-settings-panel.tsx index dc026767d..5bcea4347 100644 --- a/web/src/components/audio-settings-panel.tsx +++ b/web/src/components/audio-settings-panel.tsx @@ -47,46 +47,50 @@ export function AudioSettingsPanel({ config, onConfigChange, theme, showTitle =
event.stopPropagation()}> {showTitle ?
音频设置
: null} - {isDoubao ? ( -
-
- 不连接素材时,按提示词直接生成。连接音频时按参考音频生成,最多 3 段。连接图片时按参考图片生成,最多 1 张。图片和音频不能同时连接。 -
- + {isDoubao ? ( +
+
+ 不连接素材时,按提示词直接生成。连接音频时按参考音频生成,最多 3 段。连接图片时按参考图片生成,最多 1 张。图片和音频不能同时连接。
- ) : ( - <> - onConfigChange("audioVoice", event.target.value)} - onMouseDown={(event) => event.stopPropagation()} - /> - - {visibleVoiceOptions.map((item) => )} - -
- {visibleVoiceOptions.map((item) => ( - onConfigChange("audioVoice", item.value)}> - {item.label} - - ))} -
- - )} - + +
+ ) : ( + <> + onConfigChange("audioVoice", event.target.value)} + onMouseDown={(event) => event.stopPropagation()} + /> + + {visibleVoiceOptions.map((item) => ( + + ))} + +
+ {visibleVoiceOptions.map((item) => ( + onConfigChange("audioVoice", item.value)}> + {item.label} + + ))} +
+ + )} +
{formatOptions.map((item) => ( @@ -117,16 +121,18 @@ export function AudioSettingsPanel({ config, onConfigChange, theme, showTitle = onMouseDown={(event) => event.stopPropagation()} /> - {!isDoubao ? -