计分本细节更新

This commit is contained in:
kron
2025-11-04 11:54:22 +08:00
parent 1d086c83d4
commit 3498bc5027
8 changed files with 284 additions and 35 deletions

View File

@@ -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 {