修复总开关逻辑问题

This commit is contained in:
nhkefus
2025-03-17 11:38:48 +08:00
parent c49fc46e15
commit 6f6c1b700f
2 changed files with 11 additions and 2 deletions

View File

@@ -809,9 +809,12 @@
}, sockets_st);
HttpPost("/led", function (re) {
}, checkboxs[0].checked ? "1" : "0");
HttpPost("/socketAll", function (re) {
}, checkboxs[1].checked ? "1" : "0");
});
document.getElementById("list-switch-all").addEventListener("click", function() {
HttpPost("/socketAll", function (re) {
}, checkboxs[1].checked ? "1" : "0");});
//Socket-end
//Config-start