修复ota可能无法使用的问题

This commit is contained in:
Your Name
2025-04-12 16:03:34 +08:00
parent 34e1cabc53
commit 5623b632c7
6 changed files with 155 additions and 129 deletions

View File

@@ -1305,7 +1305,7 @@ componentHandler.upgradeDom();
switch_lables[i+3].MaterialSwitch.off();
}
}
window.setTimeout(GetPowerRecord, 3000);
window.powerTimeout= window.setTimeout(GetPowerRecord, 3000);
}, power_idx.toString());
}
$(document).ready(function(){
@@ -1485,6 +1485,7 @@ HttpPost("/shortClickEvent", function (re) {
var protocol = window.location.protocol;
var baseUrl = protocol+"//"+window.location.host;
clearTimeout(window.powerTimeout);
HttpPost("/ota", function (re) {
OtaStatus();
}, ota_url);