解决更新通道导致的点播丢失

This commit is contained in:
panlinlin
2021-04-19 14:24:08 +08:00
parent 57bbbc9f7a
commit 6e67b1902e
5 changed files with 13 additions and 7 deletions

View File

@@ -59,8 +59,8 @@ export default {
sseControl() {
let that = this;
if (this.alarmNotify) {
console.log("申请SSE推送API调用浏览器ID: " + this.$browserId);
this.sseSource = new EventSource('/api/emit?browserId=' + this.$browserId);
console.log("申请SSE推送API调用浏览器ID: " + this.$browserId);
this.sseSource = new EventSource('/api/emit?browserId=' + this.$browserId);
this.sseSource.addEventListener('message', function(evt) {
that.$notify({
title: '收到报警信息',