feat(admin): add award sound effect button

This commit is contained in:
empty
2026-02-04 00:33:03 +08:00
parent baacee50e6
commit bd62dff06a
3 changed files with 9 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ const AUDIO_TRACKS: Record<string, string> = {
bgm: '/screen/audio/bgm.mp3',
lottery: '/screen/audio/lottery.mp3',
fanfare: '/screen/audio/fanfare.mp3',
award: '/screen/audio/award.mp3',
};
export const useDisplayStore = defineStore('display', () => {

View File

@@ -577,6 +577,10 @@ function playFanfare() {
admin.controlMusic('play', 'fanfare');
}
function playAward() {
admin.controlMusic('play', 'award');
}
// QR Code display control
function showEntryQR() {
const socket = admin.getSocket();
@@ -1122,6 +1126,9 @@ onMounted(() => {
<button class="ctrl-btn" @click="playFanfare">
播放礼花音效
</button>
<button class="ctrl-btn" @click="playAward">
播放颁奖音效
</button>
</div>
</div>