diff --git a/apps/web/src/pages/voices/components/TtsModal.tsx b/apps/web/src/pages/voices/components/TtsModal.tsx index 3ad346162..1f765f918 100755 --- a/apps/web/src/pages/voices/components/TtsModal.tsx +++ b/apps/web/src/pages/voices/components/TtsModal.tsx @@ -34,10 +34,9 @@ const TtsModal: React.FC = ({ onSave, }) => { // 预置音色(含空默认)仅支持 zh/en;克隆音色支持全语言列表 - const clonedList = clonedVoices ?? [] const isCloneVoice = useMemo( - () => !!ttsVoiceId && clonedList.some((v) => v.id === ttsVoiceId), - [ttsVoiceId, clonedList], + () => !!ttsVoiceId && (clonedVoices ?? []).some((v) => v.id === ttsVoiceId), + [ttsVoiceId, clonedVoices], ) const languageOptions = isCloneVoice ? CLONE_TTS_LANGUAGE_OPTIONS : PRESET_TTS_LANGUAGE_OPTIONS