fix: 生成配音前增加未选择音色的提示

This commit is contained in:
小鱼开发
2026-04-28 09:22:26 +08:00
parent b014e8d53e
commit e8f4fcd7f5
@@ -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);