fix: 增加定时发送sceneId,避免被缓存过期

dev
chuguofei 2023-07-17 13:54:18 +08:00
parent 5ed025e04b
commit fd2aa588df
1 changed files with 4 additions and 4 deletions

View File

@ -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);
})