Commit 54b8028f authored by Chen Jiping's avatar Chen Jiping

fix:修复屏幕放大时,导致无法点击的问题

parent 230435d7
......@@ -404,7 +404,7 @@ export class PlayComponent implements OnInit, OnDestroy {
return new Promise((resolve, reject) => {
const audio = new Audio();
audio.oncanplay = (a) => {
resolve();
resolve(a);
};
audio.onerror = () => {
reject();
......@@ -628,6 +628,8 @@ export class PlayComponent implements OnInit, OnDestroy {
//产生转速倍数
this.temp_multiple = this.multiple * (1 + Math.random());
this.playingStatus = false;
}
......
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