浏览代码

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,