Commit bc8a41ff authored by Chen Jiping's avatar Chen Jiping

fix:增加点击播放判断

parent 5f34dae4
......@@ -986,6 +986,8 @@ export class PlayComponent implements OnInit, OnDestroy {
else {
if (exercises.checkAnswer(this.curIndex + 1)) {
this.canTouch = false;
this.playAudio('right', true, () => {
let key = 'exercises_index_' + index;
......@@ -993,7 +995,9 @@ export class PlayComponent implements OnInit, OnDestroy {
this.curAudio = audio;
this.playAudio(key, true);
this.playAudio(key, true, () =>{
this.canTouch = true;
});
});
......
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