音乐路径修改

This commit is contained in:
joylink_zhaoerwei 2023-08-18 09:54:27 +08:00
parent ebbdff239d
commit 4db27e9e3c
4 changed files with 4 additions and 4 deletions

View File

@ -42,16 +42,16 @@ function playAlarmMusic(type: number) {
const alarmType = (showAlertTypeData as never)[type + '']; const alarmType = (showAlertTypeData as never)[type + ''];
switch (alarmType) { switch (alarmType) {
case '道岔失表': case '道岔失表':
audioSrc.value = 'src/assets/lost.mp3'; audioSrc.value = '../../../alarmMusic/lost.mp3';
break; break;
case '计轴红光带': case '计轴红光带':
audioSrc.value = 'src/assets/red.mp3'; audioSrc.value = '../../../alarmMusic/red.mp3';
break; break;
case '计轴大面积红光带': case '计轴大面积红光带':
audioSrc.value = 'src/assets/red.mp3'; audioSrc.value = '../../../alarmMusic/red.mp3';
break; break;
default: default:
audioSrc.value = 'src/assets/buzzer.mp3'; audioSrc.value = '../../../alarmMusic/buzzer.mp3';
break; break;
} }
audio.value.src = audioSrc.value; audio.value.src = audioSrc.value;