fix: 增加定时发送sceneId,避免被缓存过期
parent
5ed025e04b
commit
fd2aa588df
|
|
@ -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);
|
||||
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue