Commit 06996326 authored by Li Mingzhe's avatar Li Mingzhe

fix: 不播题干

parent 06aa2cf8
......@@ -2062,18 +2062,24 @@ export class PlayComponent implements OnInit, OnDestroy {
const curData = this.picArr[index];
const audio = this.audioObj[curData.audio_url];
if (audio) {
if (audio && !audio.hasEndedEvent) {
audio.onended = () => {
setTimeout(() => {
this.showPicSound();
}, this.delayPicSoundShowTime);
};
audio.play();
audio.hasEndedEvent = true;
}
} else {
this.showPicSound();
}
audio.play();
// else {
// this.showPicSound();
// }
this.answerIdIndex ++;
......
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