From a5fd6b72f8342f0228321849b04c822feba2d2a0 Mon Sep 17 00:00:00 2001 From: taisheng <taisheng@qq.com> Date: 星期三, 02 七月 2025 09:42:42 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/shuttle_rcs' into shuttle_rcs --- src/main/webapp/views/admin/locMap/locMap.html | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/main/webapp/views/admin/locMap/locMap.html b/src/main/webapp/views/admin/locMap/locMap.html index e9140ad..4b25c9a 100644 --- a/src/main/webapp/views/admin/locMap/locMap.html +++ b/src/main/webapp/views/admin/locMap/locMap.html @@ -193,14 +193,18 @@ }, methods: { init(){ + let that = this ws = new WebSocket("ws://" + window.location.host + baseUrl + "/console/websocket"); ws.onopen = this.webSocketOnOpen ws.onerror = this.webSocketOnError ws.onmessage = this.webSocketOnMessage ws.onclose = this.webSocketClose - this.getMap(this.currentLev) + this.initLev()//鍒濆鍖栨ゼ灞備俊鎭� + setTimeout(() => { + that.getMap(this.currentLev) + }, 1000); // this.consoleInterval = setInterval(() => { // this.getMap(this.currentLev) //鑾峰彇瀹炴椂鍦板浘鏁版嵁 -- Gitblit v1.9.1