Commit 93aeac50 authored by 范雪寒's avatar 范雪寒

fix: 音频问题

parent 875cca85
......@@ -121,10 +121,10 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges {
handleTap(ev, item) {
if (item.is_right) {
item.state = 'right';
this.rightAudio.play();
new Audio(this.rightAudio.src).play();
} else {
item.state = 'wrong';
this.wrongAudio.play();
new Audio(this.wrongAudio.src).play();
setTimeout(() => {
item.state = '';
}, 1500);
......
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