feat(admin): add award sound effect button
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user