From 4db27e9e3c5891d35e646964e2f216078e3b7f58 Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Fri, 18 Aug 2023 09:54:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9F=B3=E4=B9=90=E8=B7=AF=E5=BE=84=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- {src/assets => public/alarmMusic}/buzzer.mp3 | Bin {src/assets => public/alarmMusic}/lost.mp3 | Bin {src/assets => public/alarmMusic}/red.mp3 | Bin src/components/alarm/commonAlarm.vue | 8 ++++---- 4 files changed, 4 insertions(+), 4 deletions(-) rename {src/assets => public/alarmMusic}/buzzer.mp3 (100%) rename {src/assets => public/alarmMusic}/lost.mp3 (100%) rename {src/assets => public/alarmMusic}/red.mp3 (100%) diff --git a/src/assets/buzzer.mp3 b/public/alarmMusic/buzzer.mp3 similarity index 100% rename from src/assets/buzzer.mp3 rename to public/alarmMusic/buzzer.mp3 diff --git a/src/assets/lost.mp3 b/public/alarmMusic/lost.mp3 similarity index 100% rename from src/assets/lost.mp3 rename to public/alarmMusic/lost.mp3 diff --git a/src/assets/red.mp3 b/public/alarmMusic/red.mp3 similarity index 100% rename from src/assets/red.mp3 rename to public/alarmMusic/red.mp3 diff --git a/src/components/alarm/commonAlarm.vue b/src/components/alarm/commonAlarm.vue index 63f274c..31a1479 100644 --- a/src/components/alarm/commonAlarm.vue +++ b/src/components/alarm/commonAlarm.vue @@ -42,16 +42,16 @@ function playAlarmMusic(type: number) { const alarmType = (showAlertTypeData as never)[type + '']; switch (alarmType) { case '道岔失表': - audioSrc.value = 'src/assets/lost.mp3'; + audioSrc.value = '../../../alarmMusic/lost.mp3'; break; case '计轴红光带': - audioSrc.value = 'src/assets/red.mp3'; + audioSrc.value = '../../../alarmMusic/red.mp3'; break; case '计轴大面积红光带': - audioSrc.value = 'src/assets/red.mp3'; + audioSrc.value = '../../../alarmMusic/red.mp3'; break; default: - audioSrc.value = 'src/assets/buzzer.mp3'; + audioSrc.value = '../../../alarmMusic/buzzer.mp3'; break; } audio.value.src = audioSrc.value;