修改PA系统语音播放bug

This commit is contained in:
joylink_zhangsai 2022-09-21 15:41:53 +08:00
parent 63d02669dc
commit 80b509464a

View File

@ -353,7 +353,7 @@ export default {
if (device) {
this.$set(this.deviceMap[device.position], 'state', item.state);
const div = document.getElementById(device.position);
if (this.$route.query.stationId === item.stationCode && !['0', '12', '13'].includes(item.state) && this.atcBroadcast.includes(item.position)) {
if (this.$route.query.stationId === item.stationCode && !['0', '12', '13'].includes(item.state) && this.atcBroadcast.includes(device.position)) {
const audio = document.getElementById('voice');
audio.src = this.$store.state.user.resourcesUrl + item.url;
audio.play();