代码调整
This commit is contained in:
parent
bba26fcdf1
commit
68a96b32c2
@ -42,16 +42,16 @@ function playAlarmMusic(type: number) {
|
||||
const alarmType = (showAlertTypeData as never)[type + ''];
|
||||
switch (alarmType) {
|
||||
case '道岔失表':
|
||||
audioSrc.value = '../../../public/alarmMusic/lost.mp3';
|
||||
audioSrc.value = '/alarmMusic/lost.mp3';
|
||||
break;
|
||||
case '计轴红光带':
|
||||
audioSrc.value = '../../../public/alarmMusic/red.mp3';
|
||||
audioSrc.value = '/alarmMusic/red.mp3';
|
||||
break;
|
||||
case '计轴大面积红光带':
|
||||
audioSrc.value = '../../../public/alarmMusic/red.mp3';
|
||||
audioSrc.value = '/alarmMusic/red.mp3';
|
||||
break;
|
||||
default:
|
||||
audioSrc.value = '../../../public/alarmMusic/buzzer.mp3';
|
||||
audioSrc.value = '/alarmMusic/buzzer.mp3';
|
||||
break;
|
||||
}
|
||||
audio.value.src = audioSrc.value;
|
||||
|
Loading…
Reference in New Issue
Block a user