修正对话列表的第一个参数获取

This commit is contained in:
yueliuli 2026-05-06 17:36:43 +08:00
parent af604a45e5
commit 3b62a0294d
1 changed files with 3 additions and 3 deletions

View File

@ -252,13 +252,13 @@ function getAudioRecData(res: any) {
const conversationList: [number, string, string, string][] = [] const conversationList: [number, string, string, string][] = []
sentences.forEach((sentence: Sentence, index: number) => { sentences.forEach((sentence: Sentence) => {
const mins = Math.floor(sentence.begin_time / 60) const mins = Math.floor(sentence.begin_time / 60)
const secs = Math.floor(sentence.begin_time % 60) const secs = Math.floor(sentence.begin_time % 60)
const timeStr = `${mins.toString().padStart(2, '0')}:${secs.toString().padStart(2, '0')}` const timeStr = `${mins}:${secs.toString().padStart(2, '0')}`
conversationList.push([ conversationList.push([
index, sentence.begin_time,
timeStr, timeStr,
sentence.speaker, sentence.speaker,
sentence.text, sentence.text,