diff --git a/src/components/alarm/commonAlarm.vue b/src/components/alarm/commonAlarm.vue index 93db671..397fb53 100644 --- a/src/components/alarm/commonAlarm.vue +++ b/src/components/alarm/commonAlarm.vue @@ -81,6 +81,7 @@ function playAlarmMusic(type: number, lineId: number) { i--; } } + if (!lineNetStore.handlePlayAble) return; if (lineNetStore.playAble && audio.value.paused) { const alarmType = (showAlertTypeData as never)[type + '']; let mapAlarmMusic = new Map(); diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index 053f5d3..91c58df 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -15,7 +15,7 @@ 西安NCC调度辅助决策系统 -