From 73ce8bebcc5d14f3fb62a19ee677abfcdfc776b4 Mon Sep 17 00:00:00 2001 From: Junjie <540245094@qq.com> Date: 星期六, 19 七月 2025 16:17:51 +0800 Subject: [PATCH] # --- 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