From 1245ae7874fd97c70ec6048f4d90ee70831d17ba Mon Sep 17 00:00:00 2001
From: PengOu <595466820@qq.com>
Date: 星期二, 30 一月 2024 10:59:25 +0800
Subject: [PATCH] Fix 推流列表-> 添加通道 报错: 错误: 字段 "gbStreamId" 不存在 ,改为:gb_stream_id 自测试通过
---
web_src/src/layout/UiHeader.vue | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/web_src/src/layout/UiHeader.vue b/web_src/src/layout/UiHeader.vue
old mode 100644
new mode 100755
index 3e9cca0..fdfcb9f
--- a/web_src/src/layout/UiHeader.vue
+++ b/web_src/src/layout/UiHeader.vue
@@ -37,9 +37,9 @@
</template>
<script>
-
import changePasswordDialog from '../components/dialog/changePassword.vue'
import userService from '../components/service/UserService'
+import {Notification} from 'element-ui';
export default {
name: "UiHeader",
@@ -54,18 +54,19 @@
};
},
created() {
- console.log(4444)
console.log(JSON.stringify(userService.getUser()))
if (this.$route.path.startsWith("/channelList")) {
this.activeIndex = "/deviceList"
-
}
},
mounted() {
window.addEventListener('beforeunload', e => this.beforeunloadHandler(e))
- // window.addEventListener('unload', e => this.unloadHandler(e))
this.alarmNotify = this.getAlarmSwitchStatus() === "true";
- this.sseControl();
+
+ // TODO: 姝ゅ寤惰繜杩炴帴 sse, 閬垮厤 sse 杩炴帴鏃� browserId 杩樻湭鐢熸垚, 鍚庣画寰呬紭鍖�
+ setTimeout(() => {
+ this.sseControl()
+ }, 3000);
},
methods: {
loginout() {
@@ -106,10 +107,12 @@
this.sseSource = new EventSource('/api/emit?browserId=' + this.$browserId);
this.sseSource.addEventListener('message', function (evt) {
that.$notify({
- title: '鏀跺埌鎶ヨ淇℃伅',
+ title: '鎶ヨ淇℃伅',
dangerouslyUseHTMLString: true,
message: evt.data,
- type: 'warning'
+ type: 'warning',
+ position: 'bottom-right',
+ duration: 3000
});
console.log("鏀跺埌淇℃伅锛�" + evt.data);
});
--
Gitblit v1.8.0