Commit 8a27d259 authored by Chen Jiping's avatar Chen Jiping

fix:修复音频播放问题

parent ae36c7b8
......@@ -612,7 +612,7 @@ export class PlayComponent implements OnInit, OnDestroy {
}
if(exercises.indexAudioUrl){
this.addUrlToAudioObj('exercises_index_' + i, exercises.indexAudioUrl);
this.addUrlToAudioObj(exercises.indexAudioUrl);
}
}
......@@ -989,7 +989,7 @@ export class PlayComponent implements OnInit, OnDestroy {
this.canTouch = false;
this.playAudio('right', true, () => {
let key = 'exercises_index_' + index;
let key = exercises.data.indexAudioUrl;
const audio = this.audioObj[key];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment