From 418970eab27d313307d60fd4f2a187efcea260ff Mon Sep 17 00:00:00 2001 From: panlinlin <648540858@qq.com> Date: 星期一, 01 三月 2021 18:13:26 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/wvp-28181-2.0' into wvp-28181-2.0 --- web_src/src/components/UiHeader.vue | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web_src/src/components/UiHeader.vue b/web_src/src/components/UiHeader.vue index 0537a87..bafc209 100644 --- a/web_src/src/components/UiHeader.vue +++ b/web_src/src/components/UiHeader.vue @@ -34,7 +34,7 @@ let that = this; if (this.alarmNotify) { console.log("鐢宠SSE鎺ㄩ�丄PI璋冪敤锛屾祻瑙堝櫒ID: " + this.$browserId); - this.sseSource = new EventSource('/api/emit?browserId=' + this.$browserId); + this.sseSource = new EventSource('/api/emit?browserId=' + this.$browserId); this.sseSource.addEventListener('message', function(evt) { that.$notify({ title: '鏀跺埌鎶ヨ淇℃伅', @@ -59,7 +59,7 @@ this.sseSource.removeEventListener('message', null); this.sseSource.removeEventListener('error', null); this.sseSource.close(); - } + } } }, mounted() { -- Gitblit v1.8.0