【仿真功能】iscs界面,屏蔽门系统切换车站时以前是有订阅的,现在没了

This commit is contained in:
joylink_cuiweidong 2023-02-08 15:19:48 +08:00
parent b94a5d4842
commit 52970e9e9a

View File

@ -47,6 +47,7 @@ export default {
return ['iscs', (Math.random().toFixed(5)) * 100000].join('_'); return ['iscs', (Math.random().toFixed(5)) * 100000].join('_');
} }
}, },
watch: { watch: {
'$store.state.iscs.alarmList': function(list) { '$store.state.iscs.alarmList': function(list) {
if (list.length) { if (list.length) {
@ -60,6 +61,9 @@ export default {
document.querySelector('#teleRing').pause(); document.querySelector('#teleRing').pause();
this.$store.commit('iscs/setCloseMusic', 0); this.$store.commit('iscs/setCloseMusic', 0);
} }
},
'$store.state.socket.iscsStateMessages': function (list) {
this.$store.dispatch('iscs/updateIscsState', list);
} }
}, },
methods:{ methods:{