From e8f4fcd7f5a4ef283cd8156f14ea23213f2a332e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=B1=BC=E5=BC=80=E5=8F=91?= Date: Tue, 28 Apr 2026 09:22:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=94=9F=E6=88=90=E9=85=8D=E9=9F=B3?= =?UTF-8?q?=E5=89=8D=E5=A2=9E=E5=8A=A0=E6=9C=AA=E9=80=89=E6=8B=A9=E9=9F=B3?= =?UTF-8?q?=E8=89=B2=E7=9A=84=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tauri-app/src/pages/VideoCreation/VoiceDubbing.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/tauri-app/src/pages/VideoCreation/VoiceDubbing.tsx b/tauri-app/src/pages/VideoCreation/VoiceDubbing.tsx index afce7b6..e6d3fb8 100644 --- a/tauri-app/src/pages/VideoCreation/VoiceDubbing.tsx +++ b/tauri-app/src/pages/VideoCreation/VoiceDubbing.tsx @@ -224,6 +224,7 @@ export default function VoiceDubbing() { const currentSpeed = useProjectStore.getState().voiceSpeed; const currentVolume = useProjectStore.getState().voiceVolume; const currentPitch = useProjectStore.getState().voicePitch; + if (!currentVoiceId) { toast.warning('请先选择音色'); setIsGenerating(false); return; } const progress = useProgressStore.getState(); setIsGenerating(true);