panlinlin
2021-04-26 5ba0fba03d9fcb09eea0c1e703a4f050378d7992
web_src/src/components/UiHeader.vue
@@ -59,8 +59,8 @@
        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: '收到报警信息',