소스 검색

fix: 克隆声音录制样本文字错误

王晓东 1 개월 전
부모
커밋
2dc737070b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/pages/voice/components/MyVoiceList/components/popup-recorder/index.tsx

+ 1 - 1
src/pages/voice/components/MyVoiceList/components/popup-recorder/index.tsx

@@ -38,7 +38,7 @@ const texts = [
 ]
 
 // 随机一段文本给用户阅读
-const text = texts[Math.round(Math.random() * texts.length - 1)]
+const text = texts[Math.round(Math.random() * (texts.length - 1))]
 
 export default ({
   voiceName,