From fd2aa588df32dc84e6ec503ede3f0b98a9d9e785 Mon Sep 17 00:00:00 2001 From: chuguofei <1633295391@qq.com> Date: Mon, 17 Jul 2023 13:54:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E5=8F=91=E9=80=81sceneId=EF=BC=8C=E9=81=BF=E5=85=8D=E8=A2=AB?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E8=BF=87=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/oss/iot/monitor.jsp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/WEB-INF/oss/iot/monitor.jsp b/src/main/webapp/WEB-INF/oss/iot/monitor.jsp index d603fd8..16c9f70 100644 --- a/src/main/webapp/WEB-INF/oss/iot/monitor.jsp +++ b/src/main/webapp/WEB-INF/oss/iot/monitor.jsp @@ -723,12 +723,12 @@ $(".index_theLeft ul").height($(window).height() - 50); - setTimeout(function () { - var tempT = "/scene/update/" + $(".dashboard-menu li.active").attr("sid"); - client.subscribe(tempT); + const tempT = "/scene/update/" + $(".dashboard-menu li.active").attr("sid"); + client.subscribe(tempT); + setInterval(function () { client.publish('/sys/update/scene', $(".dashboard-menu li.active").attr("sid")); - }, 1000); + }, 1500); })