Commit ae36c7b8 authored by Chen Jiping's avatar Chen Jiping

fix:修复单词音频没有声音的问题

parent 6e461e74
......@@ -608,7 +608,7 @@ export class PlayComponent implements OnInit, OnDestroy {
let exercises = zone.exercisesArr[i];
if (exercises.answer && exercises.answer.audioUrl) {
this.addUrlToAudioObj('exercises_' + i, exercises.answer.audioUrl);
this.addUrlToAudioObj(exercises.answer.audioUrl);
}
if(exercises.indexAudioUrl){
......@@ -970,7 +970,7 @@ export class PlayComponent implements OnInit, OnDestroy {
clickExercises(exercises: Exercises, index: number) {
const play = () => {
let key = 'exercises_' + index;
let key = exercises.data.answer.audioUrl;
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