计分本细节更新
This commit is contained in:
@@ -215,6 +215,8 @@ class AudioManager {
|
||||
|
||||
// 播放指定音频
|
||||
play(key) {
|
||||
const pages = getCurrentPages();
|
||||
if (pages.length <= 1) return;
|
||||
// 如果有正在播放的音频,先停止
|
||||
if (this.currentPlayingKey) {
|
||||
this.stop(this.currentPlayingKey);
|
||||
@@ -222,6 +224,7 @@ class AudioManager {
|
||||
|
||||
const audio = this.audioMap.get(key);
|
||||
if (audio) {
|
||||
console.log("播放音频:", key);
|
||||
audio.play();
|
||||
this.currentPlayingKey = key;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user