fix: 生成配音前增加未选择音色的提示
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user